The Somali Police said Al Shabab militants killed four people and injured eight others on Thursday in a mortar attack near the presidential palace in the capital city of Mogadishu.
The militants had targeted the palace but the mortars went off about 300 metres from the nearby house of parliament.
Al Shabab spokesman Abdiasis Abu Musab told Reuters, “we pounded mortar shells on the so-called presidential palace."
Major Mohamed Nur, a Somali police officer, confirmed the death toll and number of victims injured.
The Al Qaeda-linked Al Shabab frequently launches attacks targeting government buildings, hotels and security forces in Mogadishu in its attempt to overthrow the internationally-backed government.
Somalia is struggling to revive from two decades of turmoil.