The gunman had opened fire outside the church, wounding five security guards, and tried to storm the building when police shot him dead, the officials said.
A picture of the alleged gunman's corpse published on the official Al-Ahram newspaper's website showed a bearded man wearing a bulky ammunition vest sprawled on a street.
The ISIS group's affiliate in Egypt has killed dozens of Christians in church bombings and shootings over the past year, and has threatened further attacks against the minority.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed.)
Get Breaking news, live coverage, and Latest News from India and around the world on NDTV.com. Catch all the Live TV action on NDTV 24x7 and NDTV India. Like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.