Kenyan President Uhuru Kenyatta has said a siege by suspected militants in Nairobi is over and all the attackers have been “eliminated,” the BBC reported.

Gunmen attacked the compound in the Westlands district of Kenya’s capital on Tuesday, killing at least 14 people.

Officials originally announced the end of the siege hours after it began, but gunfire and explosions were heard again early on Wednesday.

The Somalia-based militant group al-Shabab said it was behind the attack.

It is not clear how many attackers there were.

The complex houses the DusitD2 hotel as well as offices.

In a TV address to the nation, Kenyatta said 14 people had been killed but 700 others were safely evacuated from the complex.

However, the Kenyan Red Cross put the number of dead at 24.

A US citizen is among the dead, the US state department said. He has been named as Jason Spindler.

A British citizen with dual South African nationality was also killed and another Briton was wounded, the UK Foreign Office said.

“I can now confirm that… the security operation at Dusit is over and all terrorists have been eliminated,” the Kenyan president said.

“We will seek out every person that was involved in the funding, planning and execution of this heinous act,” he added, vowing to pursue them “relentlessly”.

“We are a country governed by laws, rules and regulations – a country that embraces peaceful coexistence… I must also state that we are also a nation that never forgets those who hurt our children.”

The attack began at about 15:00 local time (12:00 GMT) when four gunmen threw bombs at vehicles in the car park before entering the lobby, where one blew himself up, police say.

al-Shabab is a militant Islamist group that opposes the Somali government but has also carried out attacks throughout East Africa.

Kenya is part of a regional peacekeeping operation that supports the Somali government in its battle against al-Shabab.