Islamic State (IS) killed 10 Nigerian soldiers in an attack on the northeastern town of Magumeri, the group claimed through its news agency AMAQ on Saturday.