18 people were killed in a "terrorist" attack on a restaurant in Ouagadougou, the capital of Burkina Faso, the government said.
Communications Minister Remi Dandjino said two of the attackers had been killed and the incident was over.
Witnesses say the gunmen who carried out the attack arrived in a car to a Turkish restaurant and opened fire on the restaurant's customers who were sitting outside.
Police and security forces cordoned off the building, and shots were heard for hours. The US embassy in Ouagadougou issued a warning to its citizens to avoid the site of the attack.
The minister said the dead and injured were from different countries, including France. Turkey has confirmed the killing of one of its citizens.
The attack took place after 21:00 GMT in the crowded area of Kwame Nkrumah on the Istanbul restaurant and the Bravia hotel. Aziz Istanbul's restaurant appeared to be the center of the attack.
"I saw several trucks or jeeps on our street, and some police and soldiers from the area were armed in front of our house," an eyewitness told the BBC.
"I heard several shots, and I was terrified of entering, but I kept hearing gunshots."
A police captain told Associated Press that the attackers arrived in the area on motorcycles and that they were shooting randomly.
It is not known if the attackers were among the 18 killed.