In spite of what the movies and TV have you believe, on average it takes (on average) 3 shots to STOP an assailant, and no, most do not die.
With an armed attacker, it's best to just keep firing until he goes down. If he's down but still has a gun in his hand, and is still conscious, keep firing.