The capital of Burkina Faso came under multiple attacks on Friday that targeted the French embassy, the French cultural centre and the country's military headquarters, an AFP reporter and witnesses 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".
Two of the terrorists died in a shootout with security forces during that attack.
The statement expressed the deep condolences of the UAE to the families of victims and wished quick recovery to those injured.
Five countries - Burkina Faso, Niger, Chad, Mali and Mauritania - launched a new taskforce previous year to tackle Islamist militants in the arid Sahel region, to which worldwide donors have committed half a billion dollars.
Five of the extremists were killed at the embassy and at least three were killed near the army headquarters, according to Danjuinou, the communications minister. Pictures from the scene showed a cloud of black smoke billowing into.
Panicked residents fled the city centre on foot or motorbikes as dozens of Burkina Faso soldiers and armoured vehicles took up positions in the area.
Heavy smoke is seen coming from the army joint chief of staff's office in Ouagadougou.
Eight militants were killed during the assault
The attackers, whose identities remained unclear as at the time of filing this report, apparently targeted Army Headquarters, French Embassy in Ouagadougou and Mr. Kaba Thieba's office.
The city's military headquarters and the embassy - which is also near the prime minister's office - are about one kilometre apart.
The government said earlier the capital Ouagadougou was being assaulted by suspected Islamic extremists as explosions and gunfire erupted around the city.
Macron, who spoke to President Kabore by phone, condemned the attack and said Paris was fully committed to the region, where France has some 4,500 soldiers as part of a counter-terrorism force since it intervened against terrorists in Mali in 2013.
The landlocked nation of Burkina Faso is one of the poorest countries in the world.
On August 13 past year, two assailants opened fire on a restaurant on Ouagadougou's main avenue, killing 19 people and wounded 21.
There were conflicting reports over the number of deaths however, AFP news agency reported that at least 30 people were killed in the attack.
Five countries - Burkina Faso, Niger, Chad, Mali and Mauritania - backed by France, launched a new taskforce past year to tackle Islamist terrorists in the region, to which global donors have committed half a billion dollars.