MOGADISHU, Somalia >> Police in Somalia said Saturday that 32 people died and 63 others were wounded in an attack on a beach hotel in the capital, Mogadishu, the previous evening.

Al-Qaida’s East Africa affiliate, al-Shabab, said through its radio station that its fighters carried out the attack.

Police spokesperson Maj. Abdifatah Adan Hassan told journalists that one soldier was killed and another wounded, while the rest of the dead were civilians. Witnesses reported an explosion followed by gunfire.

Lido Beach, a popular area in Mogadishu, is bustling on Friday nights as Somalis enjoy their weekend.

A witness, Mohamud Moalim, said he saw an attacker wearing an explosive vest moments before the man “blew himself up next to the beach-view hotel.”

Moalim said some of his friends who were with him at the hotel were killed and others were wounded.

Another witness, Abdisalam Adam, told the AP that he “saw many people lying on the ground” and had helped take some wounded people to the hospital.

The Lido Beach area has in the past been targeted by militants allied to al-Shabab.

In a separate attack on Saturday, state media reported that seven people died after a passenger vehicle hit a roadside bomb some 25 miles from the capital.

Somali President Hassan Sheikh Mohamud last year declared a “total war” on the militants as the country started taking charge of its own security.

Al-Shabab still controls parts of southern and central Somalia and continues to carry out attacks in Mogadishu and other areas while extorting millions of dollars a year from residents and businesses in its quest to impose an Islamic state.

Friday’s attack came a month after Somalia started the third phase of the drawdown of peacekeeping troops under the African Union Transition Mission.

The U.N Secretary-General’s Acting Special Representative for Somalia, James Swan, on Saturday expressed support and solidarity for Somalia “in its efforts to ensure peace, security.”

He said Lido Beach is frequented by families and that “targeting this location is an abhorrent act that warrants the firmest condemnation.”

A suicide bomber reportedly detonated explosives outside a hotel in a popular beachfront area in Somalia’s capital, Mogadishu.

A spokesperson for the Somali police, Abdifatah Adan Hassan, said that officers had killed three attackers who had stormed the beachfront hotel, ending the siege. “Our security forces have eliminated all three Shabab attackers who entered the hotel and took hostage the customers and beachgoers who took shelter inside the building,” he said.

The attack underscores al-Shabab’s enduring threat despite yearslong efforts by the Somali government and its allies, including the United States and the African Union, to suppress the militant group.

The Lido area has been the target of several previous attacks, including a six-hour siege by al-Shabab on a beachside hotel in 2023, which left six civilians dead and 10 wounded. Five people were killed in a car bomb blast at a cafe in the capital last month.

And in March, the militants killed three people and wounded 27 in an hourslong siege of another Mogadishu hotel.