A beachfront restaurant in Mogadishu was attacked on Thursday by Al-Shabaab jihadists who set a car bomb.
An AFP correspondent says they did that before exchanging fire with security forces
He added that one of the gunmen is still thought to be holed up inside the restaurant.
It was not immediately clear if there were any casualties.
The Shabaab group is fighting to overthrow the internationally-backed government in the capital Mogadishu.
It was forced out of the capital by African Union soldiers five years ago but continues to launch regular attacks including in recent months on restaurants, hotels and military bases.
The jihadists have also staged repeated attacks in neighbouring Kenya and a recent security analysis warned the group was expanding its horizons with cells active in Djibouti, Ethiopia, Kenya, Tanzania and Uganda as well as Somalia.