A jury in San Diego, California, set Gallagher free after prosecutors decided not to seek jail time as the amount he had already spent in detention was more the maximum penalty available for posing with a human casualty – four months.

Rather, the jury ordered that his rank be reduced by one grade to petty officer 1st class, and said his monthly pay should be cut by $2,697 for four months.

During the court martial, the jury heard from other special forces members how Gallagher had stabbed a 17-year-old Isis prisoner in Mosul, Iraq, in 2017.

They said Gallagher had also taken photographs with the teenager’s body, and fellow SEALs said their commander had shot at noncombatants, including elderly men and young teenage girls.

Ratko Mladic removed from UN war crimes court Show all 3 1 /3 Ratko Mladic removed from UN war crimes court Ratko Mladic removed from UN war crimes court The judge went on to enter formal pleas of not guilty to the charges after Mladic refused to plead AP Ratko Mladic removed from UN war crimes court People gather in Sarajevo gather on July 4, 2011 to watch a live television broadcast of former Bosnian Serb Army chief Ratko Mladic's appearance before the International Criminal Tribunal for the former Yugoslavia (ICTY) in The Hague. Ratko Mladic removed from UN war crimes court People gather in Sarajevo on July 4, 2011 with Bosnia's wartime flags to watch a live television broadcast of former Bosnian Serb Army chief Ratko Mladic's appearance before the International Criminal Tribunal for the former Yugoslavia (ICTY) in The Hague.

This had been enough to charge him with murder, and attempted murder of civilians, and proceed with a war crimes trial against him. The 1907 Hague Convention says soldiers doing conflict must take all possible measures to prevent the dead from being despoiled or or pillaged.

Gallagher appeared on Fox News on Tuesday, and spoke about being acquitted of killing the teenager, on whose body no formal autopsy was performed.

“Loyalty is a trait that seems to be lost. You’re there to watch your brother’s back, and he’s there to watch your back,” he said.

Support free-thinking journalism and attend Independent events

The story took something of a twist when Donald Trump on Wednesday tweeted congratulations to Gallagher and appeared to suggest he had somehow sought to intervene in the case.

“Congratulations to navy Seal Eddie Gallagher, his wonderful wife Andrea, and his entire family,” he wrote. “You have been through much together. Glad I could help.”

The White House did not immediately explain what the president meant by his tweet.

The special forces operator had been tried by a seven-member jury of marines and navy personnel, Reuters said.