A bystander subdued the attacker until police arrived.