(KGTV) -- The gunman suspected of shooting and killing Newman Police Corporal Ronil Singh after the officer pulled him over was arrested Friday morning, authorities announced.
Gustavo Perez Arriaga, 32, was arrested at a home in Lamont, south of Bakersfield, according to a Facebook post from former Turlock City Councilman Ted Howze.
READ: Sheriff: California officer's killer is in the US illegally
"Great News.....The fugitive wanted in connection with murder of Newman, CA Police Officer Ronil Singh has been arrested early this morning in Bakersfield," wrote Howze.
Stanislaus County Sheriff Adam Christianson said during a news conference Friday afternoon that two others were also arrested for aiding Arriaga and trying to divert investigators.
"Two other men, 25-year-old Adrian Virgen and 27-year-old Erik Razo Quiroz, were arrested yesterday for helping Arriaga escape after he shot and killed Corporal Singh. Virgen was arrested in Hanford. Quiroz was arrested in Modesto. Virgen and Quiroz were arrested for accessory after the fact to a felony," Stanislaus County Sheriff's Department said in a Facebook post.
According to Christianson, Arriaga had ties to a northern California gang and had been arrested previously for DUI.
Christianson said Arriaga was in the country illegally and he blamed California's sanctuary law for preventing local authorities from reporting Arriaga to federal immigration officials. Christianson said Arriaga was from Mexico.
Kern County Sheriff Donny Youngblood told reporters that Arriaga came out of the home with his hands up after SWAT officers came to arrest him.
The suspect's capture ends a three day search that spanned multiple agencies throughout California. Arriaga was considered armed and dangerous.
Singh was shot a few minutes after radioing that he was pulling over a gray pickup truck that had no license plate in Newman, a town of about 10,000 people some 100 miles (160 kilometers) southeast of San Francisco. Singh died at a hospital.
Arriaga was seen in surveillance photos at a convenience store shortly before Singh was killed Wednesday. Officials release the photos and pleaded for help from the public and said they were following up on several leads.
Singh's brother, Reggie, broke down at the news conference, thanking everyone who had a hand in arresting Arriaga.
A Newman Police Officer said the department has never lost an officer on duty.
Christianson said Officer Singh also had a service dog named Sam, who will retire and spend the rest of her life with the family, saying he can't bear to take another loved one away from the family.
Information from the Associated Press was used in this report.