Not sure where you live, but in Florida doing that would be something called a homicide...in this case...
Plus I carry and the absolute last thing I want to do is kill another human being, unless I have too...
Perp jumps in your car with you to carjack you and he has a gun pointed at you. You point your gun and shoot him. How is that unlawful?