Don't hit the end of the stud directly with the hammer. Try to get some tension on it if you can (a puller or pickle fork is best, but otherwise, even a steel lever held by someone else) and then beat on the side of the part that has the hole in it. The heaviest steel BFH you can swing in the space. It should pop out eventually.