First one happens if someone shoots a vehicle, it explodes and kills you in the process. Hence, you'll get a kill message saying you killed someone with a 251 if they jump out of the halftrack right before you blow it up, and the explosion kills them, even if you're in a tank.
In the second one he probably just fired the shell before you killed him. There's a delay between when a shell is fired and when it lands.