The radical Islamist group al-Shabaab on Monday night attacked a hotel being used by Somali and African Union troops, in the north of Somalia, military officials said.
They said on Tuesday in Mogadishu that many al-Shabaab fighters, including at least two suicide bombers, attacked the hotel in Bulabarde, 185 kilometres north of Mogadishu.
Officials said explosions were heard outside and inside the hotel.
They said the Somali soldiers responded with machine guns and grenades, in a battle that lasted several hours until midnight.
Officials in Mogadishu said all the al-Shabaab attackers were killed, but there has been no official number given.