If the gun is fairly new, send it back to the factory.
If it's an older used model, you may want to check the pin like Adam_R stated. After the firing pin is stuck forward. Push down on the rear part of the firing pin, and see if there is movement. If there is. Then there is the remote possibility that the firing pin broke or snapped. I had this happen years ago. When you push the pin back into the receiver, it sits there, until you fire the gun again, then the hammer, and transfer bar allows the energy from the hammer to be transferred to the rear part of the firing pin which flies forward into the broken front part of the firing pin, the rear part of the pin retracts, after you release the trigger, under pressure from the firing pin spring, but the broken forward part stays "stuck" forward.