Police say they have arrested a German man who shot dead an 11-year-old girl on New Year's Day after being angered by loud fireworks.

The girl was struck in the head by a bullet while she was out on the street with adults and other children in the town of Oberaurach, north of Nuremberg.

Prosecutors identified the suspect as a 53-year-old local man who worked as a driver at a nearby prison. Bamberg chief prosecutor Erik Ohlenschlager said Wednesday the man acknowledged shooting "toward a group of people" but denied intending to kill anybody. He legally owned four firearms.

Police spokeswoman Kathrin Thamm said the girl, whose parents had immigrated to Germany, appeared to have been a random victim.