Four detainees escaped from the central prison in Mauritania's capital, Nouakchott, during a breakout in which two soldiers were killed in gunfire, the interior ministry said on Monday, describing the four as "terrorists".
The ministry did not identify the escapees or say why they were in prison but it said an exchange of gunfire followed their late Sunday breakout and two national guard members were killed and two were wounded.
The national guard had secured the prison and were in pursuit of the four, the ministry said.
The arid West African country has been spared the kind of violence unleashed by Islamist groups linked to al Qaeda and Islamic State that has killed thousands in nearby countries in the Sahel region.
Mauritania has not recorded an attack in years, but it shares a long border with Mali, where armed groups are active.
(Reporting by Kissima Diagana; Writing by Nellie Peyton; Editing by Edward McAllister, Robert Birsel)