A lone 18-year-old German-Iranian attacker who shot dead 10 people, including himself, in Munich was inspired by other mass shootings around the world with police on Saturday ruling out any link to the Islamic State extremist group.

Munich police chief Hubertus Andrae said the gunman, a student named in the German media as Ali David Sonboly, acted alone when he opened fire in a McDonald's restaurant and a nearby shopping centre on Friday. Prosecutors say he suffered from depression.

Andrae said the assailant had no connection to Islamic State, which has claimed recent attacks in the French city of Nice, in which 84 people died, and a knife-and-axe attack on a train in Germany in which four people and a passer-by were injured.

Instead, investigators found material on mass shootings in the gunman's room when they raided his family's Munich apartment early Saturday after Friday night's shooting spree in which 27 people were also injured.

Andrae told a press conference that he believed the far-right terrorist Anders Behring Breivik, whose rampage in Norway five years ago left 77 people dead, would have played a role in helping to drive the Munich shooter to launch his attack.

"It is obvious that it did," Andrae said, noting the material in the gunman's room, which included a book entitled, Rampage in My Head - Why Students Kill.

Security officials said the material showed the gunman had also been fascinated with the actions of a 17-year-old German who had shot dead 15 of his classmates seven years ago in the western German town of Winnenden, and that he may had felt bullied.

The Munich attack coincided with events in Norway marking the day five years ago when Breivik began his rampage by detonating a homemade bomb in Oslo following a deadly shooting spree on the nearby island of Utoya.

In her first public comments since the shooting, Chancellor Angela Merkel said Saturday that Germans are mourning those who died and "share the pain" of the victims' families and friends.

Merkel, who was speaking after a special meeting of the security cabinet, praised the police force not just for its professionalism but also for helping and protecting citizens. She spoke of the many gestures of kindness of Munich residents, praising their solidarity in such difficult times.

Police chief Andrae said all the fatalities were from Munich and the surrounding area. Two 15-year-olds and three 14-year-olds were killed, according to investigators. Other victims were aged 17, 19, 20 and 45 years.

Three women were among the nine killed. Three Turkish citizens were among the dead, Foreign Minister Mevlut Cavusoglu was quoted as saying by Turkey's state-run Anadolu news agency.

German Interior Minister Thomas de Maiziere said on Saturday the authorities had no information about the attacker prior to Friday.

De Maiziere visited the site of the attack later Saturday with his Bavarian counterpart, Joachim Herrmann, and appealed to people in Germany and Europe to remain calm.

The federal interior minister said he understood the unrest in the population after recent terrorist attacks in France and Germany, but urged caution in understanding each individual case and its background to draw the correct conclusions.

Police said that the attacker, who was born and grew up in Germany, was carrying 300 rounds of ammunition in a rucksack and had a 9mm caliber gun.

The gun was likely to have been obtained illegally and police were trying to establish how he got it.

Police say they are still trying to verify a series of mobile phone videos of the shooting, which have been screened by German media and which show the panic in the shopping centre when the gunman opened fire.

Another video filmed by a nearby resident apparently showed the person believed to be the gunman declaring: "I am a German. I was born in Germany.

"I was hospitalized for psychological problems," he is heard saying.

Police believe he may have also tried to lure his victims to the McDonald's where he launched his shooting spree with a fake Facebook post offering free meals.

Munich was returning to normal on Saturday after authorities placed the Bavarian capital on high alert, temporarily shutting down the city's mass public transport services, evacuating the main railway station and calling on people to remain in their homes.

Munich state prosecutor Thomas Steinkraus-Koch said that his office was treating the attack as a classic case of someone running amok, with the shooter having "no political motivation".

Police also say there was no evidence that he was influenced by the axe-and-knife attack by a 17-year-old Afghan refugee on passengers on a regional train and a passer-by near the Bavarian town of Wuerzberg.

Steinkraus-Koch also believes the attacker was suffering from psychiatric problems, saying investigators have so far not establish details of his mental state but could have had a depressive illness.

"We have indications that the offender could have been suffering from a significant mental disorder," Herrmann told a press conference.

Police also ruled out the shootings having any link with refugees living in Germany.

Latest news

Syrian opposition rules out future role for President al-Assad

The Syrian opposition said Friday it would not accept any role for President Bashar al-Assad in the future of the war-torn country, reacting to a recent US shift saying that removing al-Assad is no longer a priority for Washington.

Russian Army integrates breakaway forces of Georgian province

Parts of the small fighting forces of the Georgian breakaway province of South Ossetia have been placed under Russian military control, Russian Defence Minister Sergei Shoigu said on Friday.

Czech Republic's Pilsner Urquell beer is now Japanese

Japanese brewing company Asahi completed its takeover of the Czech brewery Pilsner Urquell on Friday, Asahi said in a statement.

Judge approves 25-million-dollar settlement of Trump University case

A US district judge on Friday approved a 25-million-dollar settlement of lawsuits and state fraud allegations against Trump University, the US president's now-defunct business venture.

Former Thai premier Thaksin to junta on reconciliation: 'Cut me out'

Former Thai prime minister Thaksin Shinawatra on Friday announced that he is not interested in the junta-led reconciliation process, three days after the junta handed him a half-a-billion-dollar tax bill for his past business deal.

Dalic: We welcome possible deal between Agrokor and banks

The government welcomes the possibility of an agreement being concluded between the Agrokor food company and creditor banks, and the bill on vitally important companies is not a fallback plan but the result of the government's care for the overall economic and financial stability of Croatia, Deputy Prime Minister and Minister of Economy Martina Dalic told a press conference in Zagreb on Friday.

Croatia, China sign action plan for cooperation in agriculture

The Croatian and Chinese ministries of agriculture on Friday signed an action plan for cooperation in the field of agriculture for the period 2017-2018, the Croatian ministry said in a statement.

ZSE indices up, Agrokor shares in focus of investor interest

The Zagreb Stock Exchange (ZSE) indices on Friday rose by more than 1.8%, with stocks of the Agrokor food and retail concern being in the focus of investor interest again.

Berlin police defend handling of Berlin market attacker

Berlin police defended themselves on Friday against accusations that they stopped surveillance on Berlin Christmas market attacker despite knowing in June 2016 he was dangerous.

Croatia, creditors tailor emergency measures to save tottering giant

Croatia's tottering retail and food giant Agrokor reached an agreement with its creditors, putting its debts standby and allowing it to continue working during emergency restructuring, the Croatian branch of Austria's Erste Bank said Friday.

Agrokor's creditors say standstill agreement to go into force today

A standstill agreement regarding the Agrokor concern's existing financial obligations to banks will take effect on Friday, additional capital will be injected into the concern in the coming days and the concern will be actively restructured, which includes a change of its management, it was said on Friday after a meeting between Agrokor's suppliers and creditor banks.

Palestinians, UN slam Israel's new settlement plan

Palestinians, Israeli activists and the UN lambasted the government of Israeli Prime Minister Benjamin Netanyahu on Friday, a day after it gave the go-ahead for the first new West Bank settlement in a quarter of a century.

South Sudan rebels release three abducted foreign oil workers

South Sudanese rebels have released three foreign engineers they abducted in early March in the oil-rich Upper Nile region, Foreign Affairs Ministry official Mawein Makol Arik said on Friday.

Turkish opposition: Imprisoned party chief has gone on hunger strike

The head of Turkey's pro-Kurdish opposition party has launched a hunger strike from prison.

European leagues threaten Champions League schedule clashes

The European Professional Football Leagues (EPFL) on Friday threatened schedule clashes on Champions League matchdays in an ongoing dispute with the governing body UEFA.

Danish court revokes citizenship of IS volunteer

A Danish appellate court on Friday stripped a man of his Danish citizenship for volunteering to fight for the extremist Islamic State in Syria.

Banks and Agrokor agree on key elements of standstill agreement

Member banks of the coordinating committee of financial creditors and representatives of the Agrokor food company have in principle agreed on key elements of a standstill agreement, which is expected to be signed later today, announcing changes in the company's management team, Erste Bank said in a statement on Friday afternoon.

Syrian man on trial in Sweden; mosque attack labelled terrorism

A Syrian man went on trial Friday in the southern Swedish city of Malmo, charged with terrorism and arson after an attack last year on a building used as an assembly hall by Shiite Muslims.