The head of the UN Development Programme in Somalia has been killed by gunmen, say UN officials.
As he left the mosque in Mogadishu, the capital, Osman Ali Ahmed was shot and died in hospital of his injuries.
After years of conflict, this is the latest in a string of attacks on officials, that is plagued by lawlessness.
An insurgency against the government troops has been staging by islamist groups and their Ethiopian allies, who ousted them from power in 2006.
A UN official told AFP news agency that Mr Ahmed was attacked in Mogadishu’s southern Bulohube district.
“The gunmen shot Ahmed as he was leaving evening prayers in the mosque in Bulohube”, he said.
In the incident, Mr Ahmed’s son and another man were also wounded, the Associated Press news agency quotes a neighbour as saying.
Mr Ahmed had been covered in blood and unconscious as he was taken to hospital, said the neighbour.
A day before the shooting, an explosion in the capital reportedly killed a Somali official, his wife and four others.
In Somalia, though the governement and opposition Islamist groups have signed a ceasefire last month, recent violence continue, because the deal has been rejected by some factions.
They had killed at least 71 insurgents last week, said Ethiopian troops, who are in Somalia to support the government.
This year, as the security situation has deteriorated, thousands of people have fled Somalia, aid agencies say.
The country has experienced almost constant civil conflict, since the collapse of Mohamed Siad Barre’s regime in January 1991.
Later this year, nearly half of Somalia’s population is likely to require aid, warned the UN.