Speaking for the west African regional group Ecowas Mr Yayi said that “we’re not going to just sit on our hands. We will react and respond.”
The attack in Ouagadougou followed a similar attack in Mali in November.
“The question is, whose turn is it next?” Benin’s president asked.
Meanwhile, forensic experts have been investigating the two attack sites.
Photographers have also been capturing images of what was left behind at one of the attack site, the Capuccino cafe.
Meanwhile, al-Qaeda in the Islamic Maghreb (AQIM) has named three militants who it says carried out last week’s hotel attack in Burkina Faso, killing 29 people.
AQIM’s statement – carried by monitoring group SITE – said Ouagadougou’s four-star Splendid Hotel was a “den of global espionage”.
The statement has not been independently verified.
AQIM is based in the Sahara Desert between Mali, Niger and Algeria and has attacked West African countries.
This was its first attack on Burkina Faso.