A person has been arrested after the attack in the southern German state of Bavaria. The motives for the stabbing are still unclear.