The violence occurred in Magdeburg, a city of about 240,000 people west of Berlin that serves as Saxony-Anhalt's capital.