The attack was one of several in the region viewed as targeting France and its allies, including Ivory Coast and Burkina Faso, after Paris intervened militarily in Mali in 2013 to drive out al Qaeda-linked militants who had seized the desert north a year earlier.