Islamic State said via its Amaq news agency that it killed or wounded more than 40 soldiers in the northeast Nigerian state of Borno in two separate attacks on Tuesday.