ISLAMABAD, May 3 (Xinhua) — The Pakistani army said Wednesday that four terrorists were hanged for their involvement in terrorism.

An army statement said the convicts were involved in “committing heinous offenses relating to terrorism, including killing of innocent civilians, attacking Armed Forces of Pakistan and the law enforcement agencies.”

They were the active members of the banned Tehreek-e-Taliban Pakistan, who had confessed their crimes in the military courts, the statement from the army’s media wing Inter-Services Public Relations said.

The convicts were also in possession of firearms and explosives, the statement further said.

The military courts were established for the speedy trial of the terrorists after the deadliest attack on an army public school in Peshawar in December 2014. Nearly 150 people, mostly students, were killed in the Taliban-claimed attack.

In March this year, the parliament approved a constitutional amendment to revive the military courts for two more years. The two-year term of the military courts expired in January.