Egyptian sources say the country’s military killed a Hamas commander during an airstrike in the Sinai peninsula, Sky News Arabic on Wednesday.

The Hamas commander’s family members, however, maintained that he had in fact been killed in Libya, apparently after joining a north African jihadist terrorist cell, the Ynet news site reported.

On Tuesday, the Islamic State group’s affiliate in Egypt released a video purporting to show the beheading of eight Bedouin men it accused of working for the Egyptian and Israeli armies.

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

The video, posted on the group’s Twitter account late on Monday, also showed what it said were victims of Egyptian military operations in the restive Sinai Peninsula, where an insurgency has killed scores of policemen and soldiers.

The jihadist group, known as Ansar Bayt al-Maqdis before pledging allegiance to the Islamic State group last November, has released footage in the past showing the execution of alleged informants.

In the latest video, masked militants in camouflage behead eight men, some of them in broad daylight at a major thoroughfare in north Sinai.

The men were first made to confess they worked for the armies of Egypt and Israel, which borders the Sinai and has been attacked by fighters from the peninsula several times over the past three years.

The Egyptian military has poured troops and armor into the peninsula to quell the insurgency which picked up after the army toppled Islamist president Mohamed Morsi in July 2013.

Despite the unprecedented deployment and repeated airstrikes, the jihadists have continued to stage large-scale attacks every few months.

Simultaneous attacks last month on military and police headquarters in north Sinai killed at least 30 people.

Most of them were soldiers killed when a suicide bomber rammed an explosives-laden vehicle into the army barracks in the provincial capital, El-Arish.