The driver was arrested at the scene shortly after the car barreled into the market in the eastern German city of Magdeburg, in what authorities called a deliberate attack.