Islamabad: A Pakistani court has sentenced to death four Al-Qaeda militants, a media report said Thursday.

Afzaal, Abdul Hafeez, Zulfiqar and Karamat attacked the prison warders' hostel at Rasool Park in Lahore July 12, 2012, killing 10 trainee warders of Khyber Pakhtunkhwa and injuring seven others, Dawn online reported.

The terrorists were arrested one year after the attack along with a large amount of ammunition.

The trial court convicted the same terrorists in a separate case pertaining to carrying arms.

In this case, they were also awarded life imprisonment on two counts and 14 years of rigorous imprisonment.