A deadly shooting at a busy Munich shopping centre has left at least 10 people dead, including the gunman himself, and several injured, German police have said. As reports continued to circulate with the entire public transport system shut down after the attack, Munich police urged people to get off of the city's streets and avoid public places as they searched for the attacker.

In response, residents immediately took to social media to offer shelter to those affected by the shooting.

On Twitter, hundreds of people are using the hashtags #offenetuer (which means open door), #OffeneTür and #OpenDoor to reach out to people left stranded in the aftermath of the shooting.

Restaurants and local hotels also opened their doors to people looking for refuge as well. Islamische Zeitung, or Islamic Newspaper also noted on Facebook that mosques across Munich will "remain open all night for all people in Munich who seek refuge."

Wichtige Info zu #München: #OffeneTür für alle. Passt aufeinander auf!

Posted by Islamische Zeitung on Friday, July 22, 2016

Facebook also activated its Safety Check feature for the fifth time in five weeks, allowing users to let their family and friends know that they are safe. The feature was recently deployed after the deadly shooting at an Orlando nightclub, the terror attack in Istanbul's Ataturk Airport, the shootings in Dallas and the Bastille Day truck attack in Nice, France earlier this month.

People in France had also invited people affected by the Nice attack and the November attacks in Paris to take refuge in their homes using the hashtag #PorteOuverte.