LONDON — As Egyptians contemplated a new and uncertain political landscape after the military ouster of Mohamed Morsi as president, the country’s partners, neighbors and supporters seemed divided in their response on Thursday, largely reflecting their own perceptions of the threats they face at home from either militant Islam or their armed forces.

In Damascus, President Bashar al-Assad of Syria, facing a bloody insurgency that has drawn in radical Muslim fighters opposed to him, praised the Egyptian protesters and said in an interview with a state-run newspaper that the overthrow of Mr. Morsi meant the end of “political Islam.”

The United Arab Emirates, too, expressed “satisfaction” at Mr. Morsi’s downfall.

For Western nations, the response to some to the rapid-fire events in Cairo seemed to touch a vein of realpolitik, pitting concern about military takeovers in principle against a little-disguised unease at the ascendancy of political Islam under Mr. Morsi.

As the British foreign secretary, William Hague, put it in London: “We will always be clear that we don’t support military intervention, but we will work with people in authority in Egypt. That is the practical reality of foreign policy.”