BAMAKO, MALI—Heavily armed Islamic extremists seized dozens of hostages Friday at a Radisson hotel, but Malian troops, backed by U.S. and French special forces, swarmed in to retake the building and free many of the terrified captives. At least 20 people were killed in the more than seven-hour siege, officials said.

An extremist group led by former al-Qaeda commander Moktar Belmoktar claimed responsibility for the attack in the former French colony, and many in France saw it as a new assault on their country’s interests a week after the Paris attacks.

While French President Francois Hollande did not link the violence at the Radisson Blu hotel with last week’s bloodshed in Paris, he declared that France would stand by the West African country.

Gunfire continued throughout the day at the hotel, which is popular with airline crews and other foreigners doing business in the capital of Bamako, but the shooting had stopped after dark.

Officials would not confirm that the entire complex had been secured by nightfall, although the only activity was firefighters carrying bodies to waiting ambulances. A police officer displayed photos of two dead gunmen, their bodies riddled with bullets, although it was not immediately clear if they were the only attackers.

The siege began when assailants shouting “God is great!” in Arabic burst into the complex and opened fire on the hotel guards, said army Cmdr. Modibo Nama Traore. An employee who identified himself as Tamba Diarra said, by phone, amid the attack, that the militants used grenades.

About 170 guests and employees were initially taken hostage, but some apparently escaped or hid in the sprawling, cream-and-pink hotel, which has 190 rooms and a spa, outdoor pool and ballroom. They included visitors from France, Belgium, Germany, China, India, Canada, Ivory Coast and Turkey.

“Once again, terrorists want to make their barbaric presence felt everywhere, where they can kill, where they can massacre. So we should once again show our solidarity with our ally, Mali,” he said.

“It was more like a real terrorist attack,” said U.N. Mission spokesman Olivier Salgado. “The intention was clearly to kill, not to necessarily have people being hostage.”

At least one guest reported the attackers instructed him to recite verses from the Qur’an as proof of his Muslim faith before he was allowed to leave, Traore said.

As people ran for their lives along a dirt road, troops in full combat gear pointed the way to safety, sometimes escorting them with a protective arm around the shoulder. Local TV showed heavily armed troops in what appeared to be a lobby.

Monique Kouame Affoue Ekonde of Ivory Coast said she and six other people, including a Turkish woman, were escorted out by security forces as the gunmen rushed toward the fifth or sixth floor. Ekonde said she had been “in a state of shock.”

Malian special forces went “floor by floor” to free hostages, army Cmdr. Modibo Nama Traore told The Associated Press.

U.S. special forces assisted, said Col. Mark Cheadle of the U.S. Army’s Africa Command. At least six Americans were evacuated from the hotel, Cheadle said. U.S. officials were trying to verify the location of all American citizens in Mali.

National Security Council spokesman Ned Price praised the bravery of the Malian, French, U.N. and U.S. security personnel who responded, adding that Washington was prepared to assist Mali’s government as it investigates “this tragic terrorist attack.”

A unit of French soldiers was sent to Bamako in support of Malian security forces, the French Defence Ministry said. About 40 special police forces also played a supporting role, France’s national gendarme service said.

The U.N. mission sent security reinforcements and medical aid to the scene, said U.N. deputy spokesman Farhan Haq. A few U.N. staff were in the hotel but they got out safely, he added.

Reflecting the chaos surrounding the siege, various death tolls were reported during the day. French Foreign Minister Jean-Yves Le Drian said 19 people died — 18 in the hotel and one Malian soldier killed in the fighting.

Loading... Loading... Loading... Loading... Loading... Loading...

A U.N. official had earlier said initial reports put the number of dead at 27, but that different casualty figures have been reported and the organization is working with authorities to get an exact total. The official spoke on condition of anonymity because the operation was still ongoing.

A Malian military official initially said there were 10 gunmen, but by later in the day, it was not clear how many assailants took part. It also was not known if the two dead attackers were included in the U.N. count of the dead.

Throughout the siege, officials in various countries from Europe to Asia sought to find out whether their citizens staying at the hotel were safe.

Chinese state broadcaster CCTV, citing its diplomats in Mali, reported about 10 Chinese citizens took shelter in their rooms, and all were safe.

Also reported safe were 12 members of an Air France flight crew and five from Turkish Airlines. All 20 guests from India were evacuated as well, said Vikas Swarup, spokesman for India’s Foreign Ministry.

The attack was perceived by many in France, particularly in the government, as a new attack on its interests.

An extremist group that two years ago split from al-Qaeda’s North Africa branch and led by Moktar Belmoktar claimed responsibility in a recorded statement carried by Al-Jazeera. The group said it wanted fighters freed from Mali’s prisons and a halt on attacks against northern Malians.

The group, known as the Mourabitounes, was formed in 2013 after Belmoktar left al-Qaeda in the Islamic Maghreb and joined with a Malian militant group. The statement said the Mourabitounes had attacked in co-ordination with the “Sahara Emirate” affiliated with al-Qaeda.

The French military operation in Mali in 2013 against Islamic extremists who were holding the northern half of the country was the first of several foreign interventions that Hollande launched as president. Those interventions have prompted increased threats against France and its interests from extremist groups ranging from al-Qaeda’s North African arm to the Islamic State group.

French news websites and all-news TV networks immediately switched from nearly nonstop coverage of the Paris attacks investigation and aftermath to the Bamako siege.

Jens David Ohlin, an international law expert at Cornell University, said France has “invested so much military energy in pushing the Islamic rebels out of Mali.”

“While Mali might not have the same emotional significance to the French as Paris does, it is certainly an important part of the French military strategy,” he added.

Northern Mali remains insecure and militant attacks have extended farther south this year, including Bamako. In March, masked gunmen shot up a Bamako restaurant popular with foreigners, killing five people.

France has 3,500 troops operating in Mali and four other countries in the Sahel region as part of a five-nation counterterrorism operation.

The Netherlands also has troops working with the U.N. mission. According to the Dutch Defence Ministry, about 450 of its personnel are involved in the mission. Most of the Dutch force is based in Gao, but there are a few officers at the U.N. mission headquarters in Bamako.

Read more about: