CAIRO — Locked in a bitter political feud, the leaders of Egypt and Turkey can’t agree on much these days. But when confronted with the plight of a stricken magician this week, they set aside their differences in a scramble to save his life.

On Sunday an Egyptian cobra bit the Turkish illusionist Aref Ghafouri, who bills himself as the “world’s most extreme magician,” as he prepared for a show in the resort city of Antalya, Turkey.

Mr. Ghafouri, 28, who became famous after appearing on a Turkish version of “America’s Got Talent,” likes dangerous animals. His Instagram page shows him cuddling a lion cub, hugging a crocodile and kissing a cobra.

After the Egyptian cobra, which was part of Mr. Ghafouri’s act, sank its fangs into his right wrist, he tied a cloth around his arm to stanch the flow of blood. At a hospital, doctors started looking for an antivenin to save him from potential paralysis or death.