Twin attacks on the French embassy in Burkina Faso and the country's military headquarters Friday left dozens dead or wounded, security sources said.
The apparently coordinated attacks underlined the struggle the fragile West African nation faces in containing a bloody and growing jihadist insurgency.
The government said the attack on the military was a suicide car bombing, adding that a regional anti-terrorism meeting may have been the target.
Eight members of the armed forces were killed by the blast and the parallel attack on the French embassy, while 80 were wounded, said Security Minister Clement Sawadogo. The minister said eight attackers had been shot dead.
‘The vehicle was packed with explosives’ and caused ‘huge damage’, Sawadogo said, adding that it was a ‘suicide’ attack.
Three security sources, two in France and one in West Africa, told AFP that at least 28 people were killed in the attack on the military HQ alone.
French government sources said there were no French casualties and described the situation in Ouagadougou as ‘under control’.
‘Our country was once again the target of dark forces,’ President Roch Marc Christian Kabore said in a statement.
The violence began mid-morning when heavy gunfire broke out in the centre of the Burkinabe capital Ouagadougou.
Witnesses said five armed men got out of a car and opened fire on passersby before heading towards the French embassy.
At the same time, the bomb went off near the headquarters of the Burkinabe armed forces and the French cultural centre, about a kilometre (half a mile) from the site of the first attack, other witnesses said.
Sawadogo said a meeting of the G5 Sahel regional counter-terrorism force was supposed to have been held at the headquarters but had been moved to another room.
‘Perhaps it was the target. We do not know at the moment. In any case the room was literally destroyed by the explosion,’ said Sawadogo.
Officials from Burkina Faso, Chad, Mali, Mauritania and Niger were at the meeting, representing the G5 Sahel nations who have launched a joint military force to combat jihadists on the southern rim of the Sahara.
The completed force will be composed of 5,000 troops and aims to be fully operational by the end of the month.
It has already carried out operations against jihadist fighters with help from the French army.
Mahamadou Issoufou, Niger's president and the current chair of the G5-Sahel, said Friday's attacks ‘will only strengthen the resolve of the G5-Sahel and its allies in the fight against terrorism’.
‘More than ever, Africa and the international community must mobilize to stand together against this barbarity that must be permanently neutralized,’ added Guinea's President Alpha Conde in a statement.
French president Emmanuel Macron telephoned his Burkinabe counterpart Kabore to express solidarity and send his condolences to the families of the slain security force members, his office said.
Macron, who made a high-profile visit to Burkina Faso in November, said the attacks ‘illustrate once more the threat weighing on the entire Sahel region’.
Foreign minister Jean-Yves Le Drian said damage to the embassy was minor, and the mission would be able to resume normal operations ‘in two or three days’.
He paid tribute to the Burkinabe forces defending the embassy: ‘It's thanks to the courage of these troops and gendarmes that no one was hurt.’
There was no immediate claim of responsibility but Burkina Information Minister Remis Fulgance Dandjinou said the attack ‘has strong overtones of terrorism’.
Burkina Faso has a history of military-backed coups as well as of jihadist attacks.
The insurgency has caused thousands of deaths, prompted tens of thousands to flee their homes and dealt crippling blows to economies that are already among the poorest in the world.
On August 13 last year, two assailants opened fire on a restaurant on Ouagadougou's main avenue, killing 19 people and wounding 21. No one has so far claimed responsibility.
On January 15 2016, 30 people, including six Canadians and five Europeans, were killed in a jihadist attack on a hotel and restaurant in the city centre.
That attack was claimed by the Al-Qaeda-linked Al-Murabitoun group, which was led by one-eyed Algerian jihadist Mokhtar Belmokhtar.
A group called Al-Qaeda in the Islamic Maghreb (AQIM) also said some of its militants were involved.
France, the former colonial power in the Sahel region, has deployed 4,000 troops to support the five-country G5 joint force.
On February 21, two members of the French counter-terrorism force were killed by a landmine near Mali's border with Niger and Burkina Faso. Twelve French soldiers have died since the campaign, called Operation Barkhane, was launched in August 2014.
The United Nations also has a 12,000-strong peacekeeping force in Mali called MINUSMA, which has taken heavy casualties. Four UN peacekeepers were killed by a mine blast on Wednesday in the centre of the country.
Want stories like this in your inbox?
Sign up to exclusive daily email
More Stories from Africa