![Destroyed vehicles in front of Banadir beach restaurant at Lido beach in Mogadishu, Somalia, 25 August 2016](http://ichef.bbci.co.uk/news/660/cpsprodpb/1772B/production/_90934069_034955840.jpg)
Police said a car bomb exploded outside the Banadir Beach Club in the Lido area and gunmen then stormed the building.
Security forces say they killed two attackers and arrested another after a six-hour operation overnight.
The militant Islamist group al-Shabab stages regular attacks in Mogadishu and other parts of Somalia.
Earlier this year, 17 people died when the group stormed a restaurant on Lido beach.
Al-Shabab, which is linked to al-Qaeda, was ousted from Mogadishu in August 2011 but still has a presence in large areas of southern Somalia.