The standards for use of force in a war zone are different from other places, but fundamentally, members of the military must obey the rules of engagement set by the military (at the direction of the civilian leadership, i.e. the President).
There is a much stronger argument about contractors, especially in Iraq from 2003-2006, using unlawful force and not being prosecuted, than military.