A German official described the suspect as a doctor from Saudi Arabia who was acting alone.