Police identified the suspect in the deputy-involved shooting as Chad James Green, who was actively being sought for the murder.
The shooting happened around 11 a.m. when Riverside deputies confronted the suspect outside the Days Inn hotel, according to the San Bernardino Police Department. Deputies opened fire when the suspect failed to surrender and ran away.
Sgt. John Echeverria with San Bernardino police said they recovered two firearms on the suspect.
Authorities also detained a woman who was with the suspect. A witness said he heard the woman pleading with the suspect to comply with authorities before he was fatally shot.
Green, 41, was wanted in the killing of fugitive recovery agent James Black Tuesday night at the Xola Hotel in Moreno Valley. Officials said 42-year-old Black was trying to capture Green, who has an extensive criminal record and was wanted most recently for a felony burglary case.
Authorities had launched a search for the suspect who had been described as armed and dangerous.
Black was a married father of five and a decorated Marine who served in Iraq.
"My husband was a good man," said his widow, Michelle Black. "He was a great man, he was a great father. He was an amazing investigator."
Michelle Black expressed thanks to law enforcement for bringing closure to the family.
A GoFundMe page has been established to assist Black's family.