Authorities are evacuating buildings and have suspended rail traffic in a Bavarian town due to a suspicious object on the tracks.