A former journalist accused of belonging to an Islamic extremist group has been sentenced to death for his alleged role in the killings of five Somali journalists.

A military court in the Somali capital convicted Hassan Hanafi Haji, who was extradited from Kenya last year on the request of the Somali government.

A judge, while handing down the death penalty for Haji, said the suspected al-Shabab member had been involved in the killings of five journalists in Somalia.

Haji showed no signs of emotion before soldiers took him away. His trial attracted significant attention from local journalists, some of whom attended the trial Thursday.

Many hope the sentence will send a message to extremists who have made Somalia one of the most dangerous places for journalists to work.