Islamic extremists who stormed a resort area in Mali popular with foreigners killed five people, including a Portuguese soldier who had been serving in the EU mission to stabilise the West African country beset by mounting extremism.

The death toll rose after a Malian soldier who was wounded in the Sunday afternoon attack died of his injuries.

Three civilians – a Chinese citizen, a Malian and a French-Gabonese dual national – were also killed in the worst terror attack to strike Bamako since late 2015.

EU foreign policy chief Federica Mogherini said the Malian victim worked for the European delegation in Bamako.

The attack struck a resort area that was considered safe enough that it was an approved rest and recreation location for soldiers with the EU mission.

It was not immediately clear how the attackers managed to overpower the security staff and shoot at guests.

Fire can be seen by the swimming pool of the Campement Kangaba after suspected jihadists attacked the hotel resort in Mali's capital (Baba Ahmed/AP)Fire can be seen by the swimming pool of the Campement Kangaba after suspected jihadists attacked the hotel resort in Mali’s capital (Baba Ahmed/AP)

Mali’s special forces arrived on the scene not long after the reports of gunfire erupting from Campement Kangaba, known for its three swimming pools and serene surroundings as an escape from the bustling capital’s heat and traffic.

Initially the country’s security minister said one of the wounded attackers had managed to escape but on Monday officials said they had accounted for all the jihadists.

“At this hour, all of the terrorists have been killed. The situation is under control,” Mali’s security minister Salif Traore said.

A sign points to the Campement Kangaba hotel resort, near Bamako (Baba Ahmed/AP)A sign points to the Campement Kangaba hotel resort, near Bamako (Baba Ahmed/AP)

Witnesses described a chaotic scene on Sunday afternoon, with one man saying the first jihadist on the scene arrived by motorcycle, shouting “Allah Akbar.”

Three others subsequently arrived in a vehicle and began firing their weapons.

One of the attackers was subdued by a French soldier who happened to be at Campement Kangaba on the weekend.

A Malian fire department vehicle is stationed outside a tourist resort near Bamako, Mali, after suspected jihadists attacked the resort in Mali's capital (Baba Ahmed/PA)A Malian fire department vehicle is stationed outside a tourist resort near Bamako, Mali, after suspected jihadists attacked the resort in Mali’s capital (Baba Ahmed/PA)

There was no immediate claim of responsibility for the attack, which took place amid the final week of the Muslim holy month of Ramadan.

However, the attack resembled a number of others carried out by the local affiliate of al Qaida in West Africa over the past two years.

It was not immediately known how the attackers managed to breach security at Campement Kangaba, where officials from the EU and UN missions as well as members of the French military were spending time.

Sunday’s violence also came about a week after the US state department warned of possible attacks on Western diplomatic missions and other locations in Bamako that Westerners frequent.

Religious extremism in Mali was once limited to northern areas, prompting the French military in 2013 to lead a military operation to oust jihadis from power in the major towns in the north.

But the militants have continued targeting Malian forces and peacekeepers, making it the deadliest UN mission in the world.