Footage has emerged showing gunmen in the opening moments of a siege on a Nairobi hotel, which killed at least 14 people.

Four militants were captured on CCTV as they stormed the DusitD2 complex in the Kenyan capital on Tuesday.

In a clip of the raid obtained by local media, men dressed in dark clothing and carrying firearms are seen to approach the hotel site.

Taking different routes into the building, two head inside, while the remaining pair hang behind, opening fire at an unknown target out of view.

Kenya’s president Uhuru Kenyatta said on Wednesday special forces had “eliminated” all of the militants who had attacked the complex during a 20-hour stand-off.

“The security operation at dusit complex is over, and all the terrorists eliminated,” he said, not elaborating on how many fighters had been involved in the attack.

“As of this moment, we can confirm that 14 innocent lives were lost through the hands of these murderous terrorists.”

Kenya’s national police chief, Joseph Boinnet, said the coordinated attack on the hotel began with an explosion in a car park outside a bank followed by a suicide bomber inside the hotel lobby.

Most of those killed are thought to have been dining in a restaurant on the complex at the time the assault took place.

Nairobi hotel attack – in pictures Show all 23 1 /23 Nairobi hotel attack – in pictures Nairobi hotel attack – in pictures Cars are seen on fire at the scene where explosions and gunshots were heard at the Dusit hotel compound, in Nairobi, Kenya Reuters Nairobi hotel attack – in pictures An injured man is evacuated from the scene of an explosion at a hotel complex in Nairobi's Westlands suburb AFP/Getty Nairobi hotel attack – in pictures A soldier takes cover next to a bullet ridden window EPA Nairobi hotel attack – in pictures People run for cover during gunfire and explosions in Nairobi EPA Nairobi hotel attack – in pictures Kenyan security forces take position following an explosion at a hotel complex in Nairobi's Westlands suburb AFP/Getty Nairobi hotel attack – in pictures Security forces on the scene of an explosion in Nairobi AP Nairobi hotel attack – in pictures Cars burn at the scene of an explosion in Nairobi AP Nairobi hotel attack – in pictures People are led away from the scene of an explosion at a hotel complex in Nairobi AFP/Getty Nairobi hotel attack – in pictures A soldier takes cover as gunfire continues at the scene of a suspected terror attack in Nairobi EPA Nairobi hotel attack – in pictures Armed plain clothes officials secure the damaged entrance of a hotel during ongoing gunfire and explosions in Nairobi EPA Nairobi hotel attack – in pictures Members of security forces take cover at the scene Reuters Nairobi hotel attack – in pictures People are evacuated from the scene of a suspected terror attack in Nairobi Reuters Nairobi hotel attack – in pictures Cars burn after an explosion in Nairobi AP Nairobi hotel attack – in pictures A member of security forces holds a weapon at the scene Reuters Nairobi hotel attack – in pictures Security forces advance at the scene of a suspected terror attack in Nairobi Reuters Nairobi hotel attack – in pictures Cars burn at the scene of an explosion in Nairobi Reuters Nairobi hotel attack – in pictures A glass damaged by bullets at the scene Reuters Nairobi hotel attack – in pictures Security personnel on the scene of a suspected terror attack in Nairobi Reuters Nairobi hotel attack – in pictures A woman is helped at the scene of an explosion in Nairobi Reuters Nairobi hotel attack – in pictures Security forces advance at the scene of a suspected terror attack in Nairobi Reuters Nairobi hotel attack – in pictures Security personnel on the scene of a suspected terror attack in Nairobi Reuters Nairobi hotel attack – in pictures Undercover police are on the scene of a blast in Nairobi AP Nairobi hotel attack – in pictures Security personnel on the scene of a suspected terror attack in Nairobi AP

At least 14 people have died, including one British and one American citizen. Two of the casualities have yet to be identified by hospital staff.

Al-Shabaab, an Islamist militant group based in Somali and backed by al-Qaeda, has claimed responsibility for the attack.