The man came to the ticket window at Del Mar Horse Racing and wanted a ticket to the evening's Ice Cube concert.
When he was told no more tickets were available, he started an argument, pulled out a silver-plated semi-automatic handgun and fired several shots into a crowded area, according to the report of the San Diego Sheriff's Department.
Deputies on hand immediately responded by returning fire.
The gunman was taken to hospital; although his current condition hasn't officially been announced, there are unconfirmed reports that he died.
Ambulances and helicopters were also seen shortly after the shooting.
Everyone has been evacuated from Yorkdale mall. Fire and ambulance on seen. pic.twitter.com/Jl2KoxS03d— Nida (@nida_zafar) August 30, 2018
Simon Bray, a racing commentator, confirmed an active shooting in a tweet.
Shots fired @DelMarRacing— Simon Bray (@SimonTVG) September 3, 2018
Chaos with people trying to leave, hard for the ambulance to get through. pic.twitter.com/EiRb45VvHL— Nida (@nida_zafar) August 30, 2018
Visitors have also shared their stories about the shooting.
"I heard six shots to the right of us, outside the gates. I jumped over the gate immediately, there were people running everywhere. And I got stuck in a stall with a kid who lost his parents. It was some scary stuff."— Jeremy Balan (@BH_JBalan) September 3, 2018
READ MORE: US Police Confirm Mass Shooting in Jacksonville, 'Multiple Fatalities' (VIDEO)
There have been no reports of anyone aside from the would-be assailant being injured in the incident. The police have launched an investigation into the shooting.