The police in Mannheim, in the country’s southwest, said the driver had been arrested and that they were investigating whether he had acted alone.