The attacker was later arrested, the police said, adding that the incident did not “appear to be terror-related”