The Islamic State claimed responsibility on Wednesday for attacks on a military camp in western Niger on Monday, the group’s Amaq news agency said.