Islamic State claimed responsibility on Thursday for an attack on Niger soldiers near the Mali border, the group’s Amaq news agency said, without providing evidence.