Donald Trump called the execution of Nidal Hasan an “Act of Justice” for the victims of the 2009 Fort Hood attack, after the US military carried out its first execution in 81 years. Defense Secretary Pete Hegseth said Hasan was “one of the worst Islamist terrorists” and described the execution as the first military firing squad since World War II.

“Under my leadership, the United States will never be a safe haven for terrorists who murder and brutally attack innocent Americans,” Trump wrote in a post. He said the execution was “an Act of Justice for the 13 beautiful souls murdered by Nidal Hasan, including a pregnant woman and her baby, and the 30 others who were so terribly wounded that horrific day. So much grief and pain, so many families torn apart by the monstrous actions of this terrorist.”

Hegseth said: “Islamists dead by firing squad, dead by torpedo, dead by Tomahawk missiles.” He added: “One of the worst Islamist terrorists has just been executed by firing squad at Fort Hood, the first military firing squad since World War II. Justice, as in World War II, so now we fight to win.”

The Pentagon said the execution was witnessed by authorised military personnel, legal representatives, 55 victims and family members, and media representatives, as required by Army regulations. The firing squad consisted of 14 soldiers: four members of the firing squad, nine members with unloaded weapons and a commanding officer. The group included one woman, and members volunteered for the role.

Hasan, a US Army psychiatrist, was convicted of attacking military personnel at Fort Hood, Texas, where troops were based before deployment to Afghanistan. All but one of the 13 victims were members of the armed forces. Hasan was wounded in the attack and left paralysed.

At his military trial, Hasan represented himself and said he had sought to protect Muslims by trying to prevent the US military presence in Afghanistan. Prosecutors described him as a self-proclaimed member of the Taliban.

The execution took place less than an hour after the Supreme Court rejected Hasan’s second emergency request for a stay, CNN reported. The court did not explain its reasoning, as is often the case in expedited appeals.

“Without a stay, a man will be executed without a federal court ever considering the defendant’s claims that this death sentence violates the Constitution,” lawyers for the American Civil Liberties Union told the Supreme Court.

Public defender John J. Baker said in a statement: “As a proud veteran who served my country in uniform for 32 years, I am sad and angry that the President, the Department of Justice and the courts have trampled the rule of law, just so Nidal Hasan could be led to the firing squad.”

The Trump administration responded to Hasan’s latest appeal on Saturday, calling it a “blatant abuse of process” and urging the court to reject it quickly. The administration said Hasan’s “baseless last-minute efforts to avoid his lawful punishment have already delayed his execution once, subjecting his surviving victims and their families, many of whom are gathered at Fort Hood right now, to needless pain and uncertainty.”

Only two journalists witnessed the execution, including Lucas Tomlinson of Fox News. Supporters and protesters gathered at Fort Hood in Texas, where demonstrators opposed to the execution held signs reading “Execution is not a solution” and “Tribute to the victims without new victims.”