Ramiro Espinoza
Ramiro Espinoza was arrested after an eight-hour standoff in Imperial Beach. San Diego County Sheriff's Department

A standoff between San Diego authorities and Ramiro Espinoza ended early Friday morning with Espinoza’s arrest in Imperial Beach, Calif., after eight hours.

The Imperial Beach standoff began around 5:10 p.m. Thursday local time when a deputy with the San Diego County Sheriff’s Department responding to a report of gunfire approached Espinoza, who fled the scene, according to ABC 10 San Diego.

Espinoza, 34, was on San Diego County’s Top 10 Wanted Fugitives list. He allegedly shot his girlfriend in the face back on May 24, according to the Los Angeles Times. The girlfriend survived the shooting.

Authorities were searching for Espinoza since then, and he was captured following a tense eight-hour standoff in Imperial Beach. The standoff involved the evacuation of 24 homes, the Times reported. A SWAT team surrounded the home where Espinoza was barricading himself. The standoff ended around 1:15 a.m. local time Friday, the San Diego County Sheriff’s Department told CBS 8 in San Diego.

Espinoza faces charges of attempted murder, domestic violence, felony assault and felon in possession of a weapon. His section of the San Diego Sheriff’s Most Wanted list said the then-fugitive “should be considered armed and dangerous.”

“Ramiro Espinoza has a history of narcotics and domestic violence and has recently been involved in series of violent domestic crimes in multiple areas of the county including the Spring Valley area,” the website states. “He frequents the South Bay Area of San Diego County. He has a tattoo with ‘San Diego’ on his stomach and tattoo picture of Jesus with thorn crown on his back. He should be considered armed and dangerous.”