MOGADISHU - Gunmen shot dead a Somali lawmaker on Saturday, witnesses said, the first assassination of a member of the war-torn country's newly appointed parliament.

The unidentified assailants fired several shots at Mustaf Haji Mohamed shortly after evening prayers in Mogadishu's Waberi district, the latest in a wave of militant attacks since the assembly elected President Hassan Sheikh Mohamud on 10 September.

Mohamud has said improving security is his priority, and such attacks underscore the scale of the challenge he faces in a country where regional administrations, clan militias, Islamist militants and pirates vie for power.

On Friday, gunmen shot dead a radio reporter, a day after three journalists were among 15 people killed in a suicide bombing that targeted a popular restaurant.

There was no immediate claim of responsibility for the shooting of Mohamed.

"Mustaf Haji Mohamed was shot dead by merciless individuals after coming out of the mosque," Mohamed Osman Jawaari, speaker of parliament, said in a statement. "He was a loyal citizen."

Mohamed Hussein, a neighbour of Mohamed, said the lawmaker was killed outside his home.