"Killing for justice" - in my view the only way to justify this would be on the grounds that this was a form of self defence by the community, as a way of preventing further violence towards the innocent in the future.
I would question whether this would ever stand up except perhaps in very special circumstances. "Killing for justice" in most circumstances I'd just see as a formalised way of killing for vengeance.