An attack by gunmen on a Turkish restaurant that began late on Sunday left at least 18 people dead and eight wounded in the capital of Burkina Faso, a West African country that has seen a surge in violence by armed groups over the past few years.

The figure was released early on Monday by Burkina Faso's communications minister Remi Dandjinou.

Canada's Foreign Minister Chrystia Freeland later said two Canadians were among the dead and French Foreign Affairs minister Jean-Yves Le Drian said a French citizen was killed.

Lebanon's interior ministry said three Lebananese died, including one who was also a Canadian national.

There was no immediate claim of responsibility for the violence, which continued into early Monday.

Earlier, authorities and witnesses suggested that three assailants had been killed by security forces, but Dandjinou revised the figure down to two, and said the security operation "has ended".

Police deploy in the area surrounding the restaurant [Reuters]

Security forces were at the scene with armoured vehicles, as shots were reported near an upscale restaurant in Ouagadougou.

Police spokesman Guy Ye told AP that the target of the attack was a Turkish restaurant known as Aziz Istanbul.

Witnesses told AFP news agency that three armed men arrived in a 4x4 at around 9:30pm (21:00 GMT) and opened fire on customers seated outside the restaurant.

At least one of those killed was a Turkish national, according to Turkey's foreign ministry, and another person killed was French.

OPINION: Reviving Thomas Sankara's spirit

The French President Emmanuel Macron condemned what he described as a "terrorist" attack.

Burkina Faso, a landlocked nation in West Africa, is one of the poorest countries in the world. It shares a northern border with Mali, which has long battled armed groups.

A January 2016 attack at a cafe left 30 people dead.

The three attackers in the 2016 massacre were of foreign origin, according to al-Qaeda in the Islamic Maghreb, which claimed responsibility in the aftermath along with the armed group known as Al Mourabitoun.

But the terror threat in Burkina Faso is increasingly homegrown, experts say.

The northern border region is now the home of a local preacher, Ibrahim Malam Dicko, who radicalised and has claimed recent deadly attacks against troops and civilians. His association, Ansarul Islam, is now considered a "terrorist group" by Burkina Faso's government.

Source: News agencies