MOGADISHU (Reuters) - A suicide car bomber crashed into a gate outside a hotel frequented by lawmakers in the center of the Somali capital of Mogadishu on Wednesday and the attack was followed by gunfire, killing 15 people, police said.

A vehicle burns at the scene of a suicide car bombing outside Hotel Ambassador on Maka Al Mukaram Road in Somalia's capital Mogadishu, June 1, 2016. REUTERS/Feisal Omar

Police said among the dead were two lawmakers. They had previously said at least 10 people were killed. Residents and a Reuters witness said gunfire could be heard in the area around the hotel late into the night.

“Lawmakers Mohamud Mohamed and Abdullahi Jamac died in the hotel. They lived in it,” Major Ibrahim Hassan, a police officer, told Reuters. “Many other people including lawmakers were rescued. The operation is about to end now. So far the death toll we have is 15 dead and 20 others wounded.”

Militants from al Shabaab, a group affiliated with al Qaeda, quickly claimed responsibility for the attack on the Hotel Ambassador and said it had killed 20 people in addition to the two lawmakers.

“We targeted the members of the apostate government ... We killed many of them inside and we shall give details later. Our mujahideen are on the top floor of the hotel building,” Sheikh Abdiasis Abu Musab, al Shabaab’s military operation spokesman, told Reuters.

Authorities could not immediately verify al Shabaab’s statement.

Hassan had said earlier police suspected al Shabaab fighters were still present in the hotel. State-run Radio Mogadishu had said government forces were still at the scene rescuing people from the hotel.

Al Shabaab was pushed out of Mogadishu by African Union peacekeeping forces in 2011. But it has remained a potent threat in Somalia, launching frequent attacks aimed at overthrowing the Western-backed government.

“I send condolences to the relatives of lawmakers Abdullahi Jamac and Mohamud Mohamed and likewise to the relatives of all those martyred in the barbaric attack,” President Hassan sheikh Mohamud, said in a statement.

Slideshow ( 3 images )

“These barbaric attacks are aimed to frighten citizens so that they do not support governance and peace and that will never happen.”

In February, at least nine people were killed when al Shabaab fighters set off a car bomb at the gate of a park near a hotel in the capital. In January, an attack on a beach-front restaurant killed at least 17 people.

Al Shabaab has also been behind deadly attacks in Kenya and Uganda. Both contribute troops to an African Union peacekeeping force in Somalia.

FIGHTERS KILLED

Maka Al Mukaram, where Wednesday’s attack took place, is a major street lined with hotels, restaurants and banks in the heart of the capital. It links another major artery, K4, to the presidential palace.

Before the hotel attack, government officials on Wednesday announced two strikes against the militants - one in which the head of the al Shabaab intelligence unit was killed, and another which killed the suspected mastermind of an attack on a university in Kenya, in which 148 people died last year.

Mogadishu municipality spokesman Abdifatah Omar said security forces killed a man known only as Daud who headed al Shabaab’s intelligence wing, known as Amniyat. Omar did not say when he was killed or give other details.

In the separate incident, Abdirashid Hassan Abdi, the semi-autonomous Jubbaland region’s security minister, said its forces had killed 16 al Shabaab fighters in Bulagadud, some 30 km to the north of the Indian Ocean port of Kismayu.

Among the dead, he said, was Mohamud Ali Dulyadeyn, suspected to have been the mastermind the April 2015 attack on Garissa University, the worst such assault in Kenya in almost 20 years.

The Pentagon also said on Wednesday a U.S. air strike targeted a senior leader of al Shabaab in Somalia, but it was still assessing the results of the May 27 drone operation.

Spokesman Peter Cook said the target, Abdullahi Haji Da’ud, was one of al Shabaab’s senior military planners and served as a principal coordinator of attacks in Somalia, Kenya, and Uganda.

Al Shabaab, which aims to impose its own strict version of Islamic law across Somalia, had no immediate comment on the killings announced by Somali authorities.