Heavily-armed Al-Shabaab militants attacked an African Union military camp outside Mogadishu on Sunday, where peacekeepers from Uganda are stationed, security officials and witnesses said.
Local sources said a massive blast was heard in the Bulomarer District, some 150 kilometres south of Mogadishu, and fighting broke out after dozens of heavily armed Shabaab militants stormed the base.
"The heavy blast struck the base before fighting broke out but we don't have the details. We are hearing the militants used a minibus loaded with explosives to make their way in before the heavily armed confrontation started at the camp," said local security official Ibrahim Abdilahi.
"There was heavy fighting and we could see smoke rising above the military base," said witness Mohamed Sharif.
The number of casualties could not be immediately confirmed.
Ugandan army spokesman Brigadier Richard Karemire wrote on Twitter that 30 Shabaab militants had been killed, while the Islamists claimed in a statement to have killed 59 Ugandan soldiers.
The Al-Qaeda linked Shabaab was pushed out of the Somali capital in 2011 — and subsequently other towns and cities — by soldiers from the African Union Mission in Somalia (Amisom).
But the Islamists still hold sway in large parts of the countryside and launch regular gun and bomb attacks on government, military and civilian targets in Mogadishu and ambushes on military convoys and outposts.
East African leaders contributing to the 22,000-strong Amisom force last month called for the United Nations to reconsider plans to withdraw troops by December 2020, saying the timeline was unrealistic and could lead to a reversal of gains.