A gunman went on a "rampage" at shopping centre in the German city of Munich on Friday, killing at least nine and injuring 21.

Police say they believe the gunman to have been an 18-year-old Iranian from the city, after earlier indications pointed to up to three perpetrators. The man, so far unnamed, is thought to have killed himself after fleeing the scene.

A video broadcast on social media purportedly shows a man firing on innocent passers-by outside the OEZ or Olympic Park shopping centre on Friday evening. This has not been verified.

A second unverified video seems to show a gunman on a rooftop car park in shouted conversation with onlookers. "Ich bin Deutscher!" he shouts at one point.

Further videos posted on social media by eyewitnesses appear to show people fleeing the scene.

Images posted online appeared to show at least one body on the ground.

The OEZ is the largest shopping centre in Bavaria.

In a tweet, Munich Police wrote: "Avoid public places. The situation is still unclear."