At least 23 Egyptian soldiers were killed when suicide car bombs tore through two military checkpoints in North Sinai on Friday, security sources said, an attack claimed by Islamic State that marks one of the bloodiest assaults on security forces in years.

Islamic State militants are waging an insurgency in the rugged, thinly populated Sinai Peninsula. They have killed hundreds of soldiers and police since 2013, when the military ousted Islamist President Mohammed Morsi after mass protests against his rule.

The two cars blew up at two checkpoints outside of a military compound just south of Rafah, on the border with the Gaza Strip, the security sources said.