It depends. If they fire without orders, they will be brought before a court martial, and possibly before a civil court.
If they have orders to fire, then there will be no court, they just have to fill out an after-action report detailing what happened.