Around 12:25 a.m. Sunday officers were responding to a report of a large crowd near 5th Avenue North and Ocean Boulevard, according to Lt. Joey Crosby of the Myrtle Beach Police Department.
Officers said a security officer shot the shooter, who then fled the scene by carjacking a vehicle.
Seven people, including the suspect, were transported to the hospital for non-life threatening injuries.
A patrol car was struck by bullets, but no officers were shot or injured.
A shot grazed a security officer in the leg, and he was treated on scene.
The suspect has been identified and taken into custody.
The suspect's identity will be released once he has been medically cleared and warrants can be served, Lt. Joey Crosby said.
We have included a Facebook video shared by a viewer. Viewer discretion is advised.
Anyone who may have information is urged to call the Myrtle Beach Police Department at 843-918-1382.