At least twelve people have died in twin attacks on Coptic Christians in the Helwan area south of Cairo, officials have said.
Ten of them died when gunmen tried to storm a church south of Cairo, but were intercepted by police.
Around an hour later, a Coptic-owned shop in the same area was attacked, and two people were killed.
More than 100 Christians have been killed in Egypt in the past year in attacks, most of them claimed by the local ISIS group.
Security forces announced plans earlier this week to protect festivities around the New Year and Coptic Christmas. They include the deployment of rapid-reaction forces and jamming equipment.
Mostafa, an auto-rickshaw driver who was near the church, said he heard several gunshots an hour before the Muslim Friday prayers.
“Dozens of people ran to the church entrance to see the source of the shooting. I saw the terrorist lying on the floor bleeding as policemen surrounded him. He had a beard and had a big [armour] belt around him.” He was handcuffed, and the police was trying to push people away from him.
This attack follows the massacre in Sinai last month by IS militants, who gunned down 300 Muslims attending Friday prayers.