Several shots were fired as officers worked to disperse the crowd, but no one was struck, police said.