An unknown object exploded near a train station in the southern city of Augsburg in the early hours of Wednesday, German police said, adding that two passers-by aged 17 and 18 sustained minor injuries.