A police colonel and a conscript were shot dead on Saturday in the southern outskirts of Cairo, Egypt's Interior Ministry reported.
Gunmen opened fire on the officer's car as he was heading to work in the Shoubramant area south of the city, the ministry stated.
Islamist militants have repeatedly carried out gun and bomb attacks against police in the Egyptian capital since 2013, when the military ousted Islamist president Mohammed Morsi amid massive demonstrations against his rule.
The attacks have died down in the past year, although an Islamic State affiliate remains highly active in the remote Sinai Peninsula, which borders Israel and the Gaza Strip.
The group has claimed that it blew up the Russian passenger jet, which crashed in Sinai in October, killing all 224 people on board.
On Friday evening, two knife-wielding assailants attempted to attack tourists in a hotel in Hurghada, a resort on Egypt's Red Sea coast.
One was shot dead by police, while the other was wounded and captured. Three tourists were injured in the incident, the Interior Ministry reported.