iStock/Thinkstock(SAN DIEGO) — A disgruntled concertgoer was shot by police outside a concert by Ice Cube at Del Mar racetrack in San Diego on Sunday night.

The San Diego Sheriff's Homicide Unit said a man approached the ticket window at about 6:40 p.m. seeking entry to the show, but was told it was sold out. After getting into an argument, sheriff's deputies responded and confronted the man.

The man pulled out "a silver-plated semi-automatic handgun" and fired into a crowd outside the Del Mar Fairgrounds, the San Diego Sheriff's Office said.

Deputies returned fire, according to the sheriff's office, and the man was struck.

The injured man was taken to Scripps Memorial Hospital La Jolla in unknown condition, authorities said.

No one else was injured.

The Ice Cube concert went on as planned.

Broadcasters calling a race live can be heard shouting, "There is gunfire at the track, there is gunfire at the track," immediately after a race ends.

In video posted by a person just inside the entrance to the track, two shots can be heard outside before a brief pause and then a succession of four quick shots. Though the shooting is not visible, the person filming can he heard saying, "He shot him, he shot him," and concertgoers scatter away from the gunshots.

Ice Cube was performing Sunday night as part of Del Mar's Summer Concert Series. Del Mar Thoroughbred Club racetrack is one of the most famous horse racing tracks in the country.

Admission to the concert was included in a ticket to the day's racing, or $30 as a standalone ticket for the show, according to the show's Facebook page.

WFAN New York sports talk show host and horse racing enthusiast Mike Francesa tweeted he was at the track for the races and said it was "crazy."

Copyright © 2018, ABC Radio. All rights reserved.