I was thinking he was able to empty one magazine, got some stoppages got panicked and kept switching and then used the grenade on himself because it was the last thing he could count on.
Looks like a TT-33; semi-auto, old, 7.62/25 with a lot of penetrating power.