Nobody is saying that the shooter deserved to be battered. We are saying that he could have avoided being put in a situation where shooting may or may not have been justified by keeping his mouth shut. That's all.
The dead guy could have avoided his own death by keeping his hands to himself. If he'd have limited his actions to just running his mouth he'd still be alive. Period.