Locals reported shots being fired at a building site, police said.
There were no indications it was a terrorist attack, spokesman Sven Mueller said.
He said one of the two dead men had fired the shots, adding nobody else appeared to have been hurt in the shooting.
“There is no danger for people there anymore,” Mr Mueller said.
The Munich daily tzquoted an unnamed police spokesperson saying authorities are working on the assumption one man shot the other dead and then killed himself.
Germany has been on high alert since December 2016, when a Tunisian asylum seeker with Islamist links hijacked a truck, killed the driver and then ploughed it into a crowded market place in Berlin, killing 11 more people and injuring dozens.
Join our new commenting forum
Join thought-provoking conversations, follow other Independent readers and see their replies