I'm really not trying to troll here, but what then of military attacks on civilian targets?
It's also worth pointing out that war/conflict are not the same thing, the definition of who is protected during a conflict is much broader than members of the armed forces during a formal war.