All bureaucracies are inherently evil, it is only the degree of evil in question. Partly this is because they are filled with anonymous functionaries who have great power and no responsibility to those they exercise the power on. The only thing the individual can do is enforce the rules regardless of how inappropriate they are in the situation. The height of this is the zero tolerance where children nibble a Pop Tart into the shape of a gun and are thrown in handcuffs or expelled.
The military should protect deployed soldiers from this sort of governmental hooliganism.
The government’s rules of engagement also apply here. Demolish home, then respond.