Military regimes in Burkina Faso, Mali, and Niger forced the withdrawal of French troops involved in the fight against militants in the region.