Al Shabab killed at least seven people as they fought government security forces in a town north of the capital.
Somalia's Al Shabab fighters have killed at least seven people in an attack on a town north of the capital Mogadishu.
Police and residents in Balad, 30 kilometres north of Mogadishu, said the Al Qaeda-linked group's fighters attacked and overran government forces guarding a bridge at the town's entrance in the early hours of Thursday.
"We were in a mosque praying when a heavy exchange of gunfire took place at the bridge. Al Shabab thus captured the town, overrunning the soldiers at the bridge," Hassan Nur, a shopkeeper in Balad said.
"There were few police forces in the town. The police were missing. When the firing started people ran into their houses. I counted five dead soldiers and two civilian women," he added.
Police captain Farah Ali said the fighters stayed briefly in the town after the attack but then left.
"Al Shabab did not come to our station but captured the entire town in the fighting and left without patrolling," Ali said.
"I understand there are about eight people dead including soldiers," he added.
Al Shabab aims to topple the government and impose a strict interpretation of Islamic law. It carries out frequent gun and bomb attacks on security and government targets, but also on civilians. It also targets African Union peacekeeping troops.
Growing political tensions
Somalia, which has had only limited central government since 1991, is trying to reconstruct itself with the help of the United Nations.
The UN and other countries have urged its Prime Minister Mohammed Hussein Roble and President Mohamed Abdullahi Mohamed to settle a political dispute that has distracted them from the fight against insurgents.
The president on Monday suspended the prime minister's powers for suspected corruption, which the prime minister said was a coup attempt as he asked all security forces to take orders from his office.
Mohamed also ordered the suspension of the country's navy commander who previously accused the prime minister of land grabbing and misuse of public land.
The two have also blamed each other for long delays in ongoing parliamentary elections.