CAIRO — Three years after the start of its revolt for democracy, the capital was shaken Friday by four deadly bombings, in the clearest sign yet that Egypt is entering a prolonged and violent struggle between the military-backed government and a growing Islamist insurgency.

The bombs, scattered around the city and aimed at the police, killed six people and left in their aftermath a grim realization that a cycle of terrorism and repression is hardening the determination of each side to fight to the death, all but extinguishing the three-year-old dream of an inclusive democracy and open debate.

“The timing is a message that the third anniversary of the revolution will not be a celebration; they want to color it with blood,” said Moataz Abdel-Fattah, a political scientist at the American University of Cairo. “And it will only darken the political waters, with more people calling for a hard-line stance against the Muslim Brotherhood and their supporters.”

Within two hours of the first and largest explosion, a car bombing at dawn outside a security headquarters, a crowd of at least 200 had gathered at the police line to cheer for Gen. Abdul-Fattah el-Sisi, who deposed President Mohamed Morsi of the Muslim Brotherhood last summer and is now poised to succeed him. “The people want the execution of the Brothers,” they chanted, blaming the Brotherhood for the attack in a bloodthirsty imitation of the calls that rang out three years ago calling for “the fall of the regime.”