By CBS13 Staff

STOCKTON (CBS13) — Detectives have arrested the suspect wanted for shooting a Black Stockton man repeatedly while also allegedly calling him the n-word.

The incident happened on Oct. 13 along the 7600 block of Pacific Avenue.

READ MORE: Sacramento Sets Storm Record With Its Highest All-Time Rainfall Total Since 1880

Surveillance cameras captured the shooting on video, showing the attacker firing relentlessly towards the victim – who was backing away with his hands up.

Family said the 45-year-old victim ended up being shot twice in the face and also suffered several other gunshot wounds on his body, including his throat. The bullets narrowly missed major arteries.

READ MORE: 'Never Been So Excited': Nonprofit Gets Unexpected Help As Storm Threatens Shelter

Stockton police have said they were investigating the shooting as a possible hate crime after the suspect was reportedly heard saying the n-word over and over again and he was shooting the victim.

On Wednesday, detectives arrested 31-year-old Michael Hayes in connection to the shooting.

MORE NEWS: UPDATE: Atmospheric River: I-880 Shutdown, Flooded Roadways, Damaged Homes, Massive Rockslides In Storm's Wake

Hayes has been booked in San Joaquin County Jail and is facing charges of attempted homicide, assault with a deadly weapon, and other weapons charges.