Two girls were injured when they were attacked on their way to school in southwestern Germany on Monday morning, a police spokesperson said, confirming a report by German daily Bild.
The spokesperson said he could not provide further details on the attack, which took place in Illerkirchberg, a town of around 5,000 people west of Munich.
German daily Bild had reported earlier that the attacker had wielded a knife.
Who was injured in the attack?
After arriving at the scene and tending to the two severely injured girls, police found that a suspect had fled into a neighboring building, Wolfgang Juergens, spokesperson for police in the German city of Ulm, told local broadcaster SWR.
The people inside the building have been taken into custody, he said, without saying how many people had been found and whether any of them were the suspected attacker.
"Everything further will come out of the ongoing investigation," he said.