Germany mourned for the victims of the recent Munich attack, as condolence messages poured in from all over the world.

The suspect of the Munich attack was an 18-year-old German-Iranian teen identified as Ali David Sonboly, who opened first opened fire at a McDonald's restaurant and then moved along the street and entered another mall, killing nine people and wounding 27 others including children. Three children were in critical condition, the Deutsche Welle reported.

A policeman shot and wounded him, but could not catch him there and he moved on before killing himself.

People of Munich laid flowers for the victims, lit candles, and left notes for them.

"A night like this is difficult for us all to bear," Chancellor Angela Merkel said. "All of us, and I say this on behalf of the whole government, are mourning with heavy hearts those who will never be able to return to their families."

The suspect did not have any links with ISIS, but was "obsessed" with mass shootings. Investigators found literature about mass killings at his home, along with a book,"Rampage in Head: Why Students Kill?" The assailant had kept newspaper clippings from Norway shooting by Anders Breivik, who slaughtered 77 people exactly five years before the Munich attack.

World leaders condemned the attack, and expressed their solidarity with Germany.

Norwegian Foreign Affairs Minister Borge Brende tweeted: "Horrible killings in Munich. Taking place on the same day as we mourn & remember the appalling terror that hit Norway so hard five years ago."

European Commission President Jean-Claude Juncker wrote, "our thoughts are with the victims in #Munich, their families and the police who risked their lives for defending a peaceful society."

EU President Donald Tusk said that "all of Europe" was with Munich.

Governments of the Muslim world also condemned the attacks.

Saudi Arabia released a statement on government-owned broadcaster al Arabia, saying that "the kingdom stands in solidarity with friendly Germany."

Bahram Qassemi, Iranian foreign ministry spokesman, said: "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."