Detectives approached Williams in the parking lot of an apartment complex on Tuesday and tried to serve him with a search warrant when an altercation occurred.
“Detectives were here preparing to serve a search warrant when they contacted the suspect in the parking lot,” Lt. Julia Engen, of the Irvine Police Department, told reporters.
“The subject they were here to interview for their investigation was shot,” she added.
Witness Cindy Jackson told KTLA that she had been applying to live at the apartment complex when she heard someone shout about a "man with a rifle outside."
“We then were asked to run out the left side of the building by a police officer, and we ran about two blocks up the road while shots were being fired,” Jackson said.
Williams was hospitalized with undisclosed injuries, while no officers were injured in the incident.
2014: The Year in Music [PHOTOS]