Two Egyptian army officers were killed on Wednesday during a raid on militant hideouts near the Nile Delta, the army said.
"An army colonel, who was also a brigadier general, and a bomb disposal expert were shot dead after militants and the army exchanged gunfire in the Arab Sharkas district of al-Qanatir al- Khayriya," a city 30 km north of the capital Cairo, an army spokesman said.
"Several tanks carrying explosive materials exploded," he added, adding six militants were killed during the raid.
Egypt has witnessed an escalation of attacks against security forces since the military ousted former Islamist President Mohamed Morsi last July. A recent Interior Ministry report said 200 soldiers and policemen have been killed in such attacks.
Most of the attacks have taken place in the restive Sinai Peninsula in the north of the country, but lately attacks have targeted several security headquarters in the capital and Delta cities.
The Sinai-based group Ansar Beit al-Maqdis, which is reportedly linked to al-Qaida, has claimed responsibility for most of the attacks.
On Saturday gunmen stormed a checkpoint in a suburb north of Cairo, killing at least six soldiers and leaving several others injured.