A gunman opened fire on a church south of Cairo on Friday, killing at least nine people before policemen shot him dead, officials and state media said.
Health ministry spokesman Khaled Megahed told state television that the gunman who was shot dead had killed nine people and wounded others, including a police officer.
The gunman had tried to storm the building when police shot him dead, police officials said.
State television reported that a second assailant who escaped had been arrested.
Cellphone footage posted on social media appeared to show the bearded gunman wearing a bulky ammunition vest sprawled on a street, barely conscious, as people restrained his arms and then handcuffed him.
Police later cordoned off the crime scene as onlookers crowded around the church, while a forensics team combed the area.
Congealing blood could be seen at a guard post in front of the church.
The ISIL Takfiri group’s affiliate in Egypt has killed dozens of Christians in church bombings and shootings over the past year.