At least 10 people, mostly civilians, have been killed after militants with the al-Qaeda-linked al-Shabab terror group launched a car bomb attack on a beach restaurant in the Somali capital, Mogadishu.

According to local police officials, the militants initially detonated the car bomb outside the compound before opening fire on the restaurant close to the Turkish embassy in Mogadishu on Thursday night.

All the “attackers have been gunned down and the restaurant is now under the full command of the Somali government soldiers,” regional police commander Colonel Abshir Bishaar told local media.

The casualties comprised six civilians, two members of the security forces and two of the attackers, said Ali Abdullahi, anorther police officer.

Residents near the scene of the attack said the shooting could be heard all night. Witnesses said they had seen two bodies lying on the ground.

A spokesperson for Mogadishu’s mayor said in a press statement that security forces had captured one of the bombers alive.