The attack has been attributed to the terrorist group Al-Shabab, which often perpetrates attacks with the goal of overthrowing the government and establishing an Islamic State.
Currently, this jihadist group controls rural areas of central and southern Somalia and also attacks neighboring countries such as Kenya and Ethiopia.
In separate statements, the African Union Transition Mission in Somalia (ATMIS) and the United Nations said terrorist attacks including the latest on Pearl Beach Hotel in Mogadishu by al-Shabab extremist group will not dissuade efforts to stabilize Somalia.
"The targeting of civilians going about their lives is an act of cowardice and against principles of International Humanitarian Law," said Mohammed El-Amine Souef, the Special Representative of the Chairperson of the AU Commission for Somalia and ATMIS head.
The police said six civilians and three security officers were among those killed in the incident at the Lido Beach, where 84 people, including children, women and elders were trapped.