A suicide bomber detonated an explosives-laden vehicle at the gate of a popular restaurant in Somalia's capital, killing at least 31 people and wounding several others, police said Wednesday night.

Two gunmen were killed in the restaurant attack as 10 hostages were freed.

Advertisement

Capt. Mohamed Hussein said there was confusion over whether gunmen fought their way inside the Pizza House restaurant after the blast. The restaurant is just meters away from another one, Posh Treats, that is frequented by the city's elite.

Most of the victims were young men who were entering the Pizza House at the time, Hussein said.

The Somalia-based extremist group al-Shabab often targets high-profile areas of Mogadishu, including hotels, military checkpoints and areas near the presidential palace. It has vowed to step up attacks after the recently elected government launched a new military offensive against it.

Al-Shabab last year became the deadliest Islamic extremist group in Africa, with more than 4,200 people killed in 2016, according to the Washington-based Africa Center for Strategic Studies.

The extremist group also faces a new military push from the United States after President Donald Trump approved expanded operations, including airstrikes, against al-Shabab. On Sunday, the U.S. military in Africa said it carried out an airstrike in southern Somalia that killed eight Islamic extremists at a rebel command and logistics camp.

Somalia President Mohamed Abdullahi Mohamed confirmed that airstrike and said such attacks would disrupt the group's ability to conduct new attacks.

With a new federal government established, pressure is growing on Somalia's military to assume full responsibility for the country's security. The 22,000-strong African Union multinational force, AMISOM, which has been supporting the fragile central government, plans to start withdrawing in 2018 and leave by the end of 2020.

Also Wednesday, the U.N. Security Council unanimously adopted a resolution extending the U.N. political mission in the Horn of Africa nation, which is trying to rebuild after more than two decades as a failed state, until March 31, 2018. The resolution recognized that "this is a critical moment for Somalia."