It looks like there were two people in the car and the carjacker didn’t open and close the door.
Rather it looks like he opened it and someone in the car pulled it shut on him. Then he tried talking through the window and it went south from there.
I don’t quite see the part where he got hit bad enough to kill him.
The bad guy pulled his gun from the small of his back.
Wonder where the good guy kept his gun.