Islamist militants in Niger have significantly stepped up their attacks in the months since generals here ousted the elected president, jettisoning the counterterrorism support of French forces and throwing into doubt cooperation with the American military.