A US federal judge has issued a stay of execution for Fort Hood shooter Nidal Hasan, temporarily halting his capital punishment.

US district judge Tony Mattivi issued a six-month pause in the execution. The capital punishment had been scheduled to take place on Thursday and was set to be carried out by firing squad.

The pause was granted because Hasan intends to lodge a habeas corpus challenge alleging improper command influence during his proceedings.

Trump cleared the capital punishment to proceed last month, coming over 15 years following Hasan receiving a death sentence. Hasan, who served as an Army psychiatrist, launched a shooting rampage on 5 November 2009 on the grounds of Fort Hood, a military installation in Texas.

The 2009 mass shooting at Fort Hood resulted in the deaths of 13 people and left more than 30 others injured. Hasan was subsequently convicted of murdering 13 people by a military jury in 2013 and received the death sentence.