A Burkina Faso prosecutor has launched an investigation after 12 people died during the same night in detention cells, hours after they were arrested for suspected terrorism-related offences in a town in the east of the country.