Two were killed by a roadside bomb and the others were shot as they tried to flee, the security sources said. Security sources said earlier that the attack killed 10 soldiers.
Militants in Sinai have stepped up attacks on policemen and soldiers since then-army chief Abdel Fattah al-Sisi toppled President Mohamed Mursi of the Muslim Brotherhood in July 2013.
The government makes no distinction between the Brotherhood — which says it is a peaceful movement — and the Sinai militants.
The attacks initially targeted security forces in Sinai — a remote but strategic part of Egypt located between Israel, the Gaza Strip and the Suez Canal — but they have since extended their reach, with bombings on the mainland.
The violence has hurt tourism, a pillar of the economy.
A Sinai-based militant group said in August it had beheaded four Egyptians, accusing them of providing Israel with intelligence for an air strike that killed three of its fighters. – Reuters