The Islamic State on Saturday claimed responsibility for an attack on Niger's army that it said had killed 30 soldiers on Wednesday.