At least 15 people were killed and two seriously injured in the attack on a mosque in northern Burkina Faso.
Armed men entered the grand mosque of Salmossi village on Friday night while those inside were praying.
The attack prompted many residents to flee the village near the Malian border.
Hundreds of people have been killed in the country in recent years, mainly by jihadist groups.
An inhabitant of the nearby town of Gorom-Gorom told the AFP news agency: "Since this morning, people have started to flee the area."
- What is behind the attacks on churches in Burkina Faso?
- Where is al-Qaeda now?
He added that there was a "climate of panic despite military reinforcements" put in place as a result of the attack.
No group admitted to having perpetrated the attack.
Jihadist attacks have been increasing in Burkina Faso since 2015, forcing thousands of schools to close their doors.
The conflict has spread across the border from neighboring Mali, where Islamist militants took control of the country's north in 2012 before French troops chased them out.
According to the UN refugee agency, more than 250,000 people in Burkina Faso have been forced to flee their homes in the last three months.
Last week, 20 people were killed in an attack on a gold mining site in the north.
Saturday, about 1,000 people demonstrated in the capital Ouagadougou to denounce the violence in their country and the presence of foreign military forces in the region.