Police said the attack could have resulted in serious injuries to officers or members of the public.