Mustafa Haji Maalim, a member of Somalia's new parliament, has been shot dead in the capital Mogadishu.
Gunmen attacked Maalim as he left a mosque Saturday following evening prayers, the BBC reported.
CNN said he was gunned down in front of his house in Mogadishu's southern district of Waberi, and later died from his injuries at a nearby hospital.
The Somali speaker of parliament, Mohamed Osman Jawari, said Maalim was killed by "elements that are known for cruelty," an apparent reference to the Islamist militant group Al Shabaab, according to the BBC.
So far no one has claimed responsibility for the attack. Al Shabaab has previously vowed to kill government officials in the Horn of Africa nation.
More from GlobalPost: Somalia gears up for final offensive against Al Shabaab
In a statement, Austine Mahiga, the UN's special representative to Somalia, said he was "shocked and outraged" by the killing of Maalim.
“These cowardly acts of targeted assassinations and indiscriminate bombings cannot deter the remarkable courage of the Somali people, whose tenacity and determination has overcome formidable obstacles and brought us where we are now," Mahiga said.
“This loss has come very early in the life of the new parliament whose work is central to the new path that Somalia has chosen. It is a reminder of the challenges faced by the new institutions and administration,” he said.
The UN statement said Mahiga is the father-in-law of Somalia's former president Sheikh Sharif.
On Thursday, a suicide attack in Mogadishu targeting the popular Village restaurant killed at least 15 people, including journalists and police officers.
More from GlobalPost: In-depth: Africa becomes new frontline against Al Qaeda