The motive for the incident in Stade, close to the port city of Hamburg, was not immediately clear.