The drive-by shooting was a rare attack at a tourist site. The state MENA newsagency said the gunmen fled the area and that an investigation was under way.
Egypt sees regular attacks on its security forces as it struggles with a low-level Islamist insurgency, mostly in the lawless northern Sinai Peninsula.
However, the attacks have lately inched closer to the capital, mostly targeting individual security agents but have also included near-daily small bombings in public areas. A deadly car bombing last year hit the security headquarters in Cairo, killing four people and also damaging an Islamic museum across the street.
The surge in violence has followed the military’s ousting in 2013 of Islamist president Mohammed Morsi and a crackdown on his group, the 87-year old Muslim Brotherhood, landing most of its leadership and thousands of its supporters in jail.
Sinai-based Ansar Beit al-Maqdis — which has claimed most of the major attacks in Egypt — has pledged allegiance to the IS.