Leaders from around the world react to the shooting rampage in Munich which left 10 people dead, including the gunman, and more than two dozen injured.
Chancellor Angela Merkel said Germans are mourning those who died in the Munich attack and "share the pain" of the victims' families and friends.
"These are very difficult hours," said Horst Seehofer, the premier of Bavaria, of which Munich is the state capital.
"Our hearts go out to those who may have been injured," US President Barack Obama said. "Germany is one of our closest allies, so we are going to pledge all the support that they may need in dealing with these circumstances."
US Secretary of State John Kerry spoke by phone with German Foreign Minister Frank-Walter Steinmeier to express his condolences and pledge US assistance in the investigation.
"Secretary Kerry also conveyed our strong commitment to stand united with Germany against such acts of violence," US State Department deputy spokesman Mark Toner said.
"The terrorist attack that has hit Munich, causing many casualties, is a new ignoble act that intends to seize Germany with terror after [having done so in] other European countries. [Germany] can count on the friendship and cooperation of France," French President Francois Hollande said.
"Profoundly shocked. I condemn in the strongest terms the cowardly and despicable attack in Munich," Belgian Prime Minister wrote on Twitter.
"Our thoughts are with the victims in Munich, their families and the police who risked their lives for defending a peaceful society," European Commission President Jean-Claude Juncker wrote on Twitter.
"All of Europe now with Munich," EU President Donald Tusk said in another tweet.
Flags outside EU buildings in Brussels were flying at half mast.
"My thoughts tonight are w/all those affected by the senseless Munich shootings, and w/the people of Germany, in sorrow and solidarity," NATO Secretary General Jens Stoltenberg wrote on Twitter.
Russian President Vladimir Putin sent condolence telegrams to Merkel and Bavaria's Seehofer, his spokesman Dmitry Peskov said.
Italian President Sergio Mattarella said "yet another, brutal homicidal act ... has once again struck at the heart of Europe. These acts continue to shock our consciences and require firm and united responses."
"My thoughts are with our friends, the German people, families of the victims and all those injured, to whom I wish a speedy and complete recovery," he added in his message to German President Joachim Gauck.
"Our wholehearted solidarity with the families of the victims and with the city of Munich and Germany in these hours of distress," the Spanish royal palace wrote on Twitter.
Spanish Prime Minister Mariano Rajoy said he had spoken with Merkel on the phone to express his condolences and wish all the injured a full recovery.
Iran's semi-official ISNA news agency said the country "categorically" condemns the attack, and quoted Foreign Ministry spokesman Bahram Qassemi as saying:
"Today, [the] fight against terrorism in any form and anywhere should be regarded as a serious and prompt demand of the international community and human conscience and should be a pattern for all countries."
In a statement, the Foreign Ministry in Cairo condemned the attack with the "strongest words" and reiterated Egypt's vehement rejection "of all forms of terrorising civilians."
Saudi Arabia "strongly condemns: the attack, Saudi-owned broadcaster al Arabiya reported, citing an unnamed official at the Foreign Ministry. "The kingdom stands in solidarity with friendly Germany," the official added.
"We are appalled by the horrific incident in Munich. Our thoughts and prayers are with the families of the deceased and those injured," Indian Prime Minister Narendra Modi said in a statement.