German gunman believed to be mentally ill

German police are confident that a masked gunman who held people hostage for three hours overnight was not a terrorist, believing that he was mentally unstable.