Seven soldiers and one civilian were killed in an ambush in Egypt’s North Sinai region on Friday, security sources said, in an attack claimed by Islamic State.