In the wake of America's deadliest mass shooting, public figures from around the world offered a wave of thoughts, prayers, condolences and words of solidarity.

Multiple cities have set up vigils, including  Rome, Paris, Jerusalem and Sao Paulo, Brazil.

In Tel Aviv, the city hall changed colors from the American flag to the Israeli flag and the LGBT pride flag in solidarity with the events in Orlando.

Gay rights supporters in Rome took part in a candlelight vigil Sunday night in the gay- and lesbian-friendly neighborhood of Gay Street, located near the Colosseum where just yesterday the city held its Gay Pride parade.

In Paris, supporters gathered at the Beaubourg art center, placing candles in a small heart-shaped vigil and holding the rainbow flag.

Buckingham Palace tweeted this statement from Queen Elizabeth II: "Prince Philip and I have been shocked by the events in Orlando. Our thoughts and prayers are with all those who have been affected."

The British Prime Minister David Cameron tweeted: “I'm horrified by reports of the overnight shooting in Orlando. My thoughts are with the victims and their families.”

Former Afghan president Hamid Karzai, visiting Washington after attending the funeral of boxer Muhammad Ali, condemned the shooting in Orlando and called it "beyond any measure of humanity and decency."

"We condemn it in the strongest possible words as an anti human, anti-humanity murderous act," he said in an interview with The Washington Post. "My heart goes out fully to the victims and to the American people. We know what it means in Afghanistan when civilians die; we know this pain very, very well."

Karzai declined to comment on the shooter's alleged links to Afghanistan.

Rio de Janeiro congressman Jean Wyllys, Brazil’s best-known openly gay lawmaker, took to Facebook to condemn not just the attack but the homophobia that he said was also a deadly issue in his own country.

“It could be any of us! Do you know any gay man, any lesbian, anyone who is bisexual? A friend, a workmate, a neighbor, a cousin? Because they could be dead if they had been in Orlando, having fun in a club without doing anybody any harm,” he wrote. “Homophobia and transphobia are not abstractions nor an invention as the villains who practice them suggest. They produce fatal victims. In Brazil, there are almost 300 murders a year.”

Michael Oren, Israel's former ambassador to the United States, tweeted his condolences. In a live interview on Israeli TV, Oren, a member of Israel's parliament, said that the attack in Orlando would help presumptive Republican presidential nominee Donald Trump in his election campaign.

Even Narendra Modi, who as prime minister of India leads a country that criminalizes gay sex, tweeted condolences: "Shocked at the shootout in Orlando, USA. My thoughts & prayers are with the bereaved families and the injured."

Not all the reaction was compassionate, though. A Turkish newspaper aligned with the current ruling party published a headline that called gay people "deviant." Others have translated it as "perverted."

Others noted that, if you searched for it, you could find people celebrating the attack in various corners of the Internet.

For many activists, it was a moment to point out links between homophobia and Islamophobia. People who belong to both the LGBT and Muslim communities argue that hate is hate, no matter who it targets.

Dom Phillips contributed from Rio de Janeiro.

Read More: