A Virginia law enforcement officer was killed in a shootout with officers in California after he allegedly murdered the mother and grandparents of a teen he caught online, before trying to escape with the teen, police said Sunday.

Officers were initially called to the La Sierra South neighborhood in Riverside, Calif., Friday shortly after 11 a.m. to check on the well-being of a girl who appeared distressed as she got into a red Kia Soul with a man, the Police Department said. of Riverside in a statement. Press release.

As officers responded, police began receiving calls about a structure fire just a few houses from where the welfare call was reported, they said.

The Riverside Fire Department arrived at the residence and found a fire on the first floor. When they entered, they discovered three adult victims lying on the ground, police said.

“Their bodies were taken outside where it was determined they were victims of an apparent homicide,” the Riverside Police Department said, adding that firefighters were able to put out the fire.

During a preliminary investigation, detectives discovered that the girl described in the initial welfare call had lived in the house where the three people were found dead, police said.

Authorities were also able to identify the man she was seen with as Austin Lee Edwards, 28, of North Chesterfield, Virginia, who detectives learned had worked for the Virginia State Police until recently being employed by the Sheriff’s Office. of Washington County in the state. from virginia

Several hours later, authorities were able to track Edwards’ vehicle as he was driving with the teen through San Bernardino County in the unincorporated area of ​​Kelso.

When deputies with the San Bernardino County Sheriff’s Department apprehended Edwards, the suspect fired at them, before at least one deputy fatally shot him, police said. Edwards was pronounced dead at the scene, they said.

The teen was uninjured and was taken into the protective custody of the Riverside County Department of Public Social Services, police said.

«Detectives determined that Edwards had met the teen through the common form of online deception known as ‘catfishing,’ where someone pretends to be a different person than they really are,» the Riverside Police Department said.

Police said Edwards was believed to have developed an online relationship with the teen and was able to obtain her personal information.

He traveled from Virginia to Riverside, where he parked his vehicle in a neighbor’s driveway and walked to the teen’s home, at one point murdering her mother, grandfather, and grandmother before returning to his vehicle with the teen and driving away, the police said.

The slain family members were identified as Mark Winek, 69, his wife, Sharie Winek, 65, and their daughter, Brooke Winek, 38, police said. The exact cause and manner of their deaths were still pending, they said. The cause of the fire at the residence was also under investigation, but police said it appeared to have been set on purpose.

It was not immediately clear what duties Edwards had with the Virginia State Police or the Washington County Sheriff’s Office.

A Press release The Virginia State Police release dated January 20 appears to list an «Austin Lee Edwards» as one of 58 new soldiers who would graduate from training the next day.

NBC News has contacted both law enforcement departments for comment.

“Our hearts go out to the Winek family and their loved ones during this time of tremendous grief as it is a tragedy for all Riversiders,” Riverside Police Chief Larry Gonzalez said. “This is yet another horrifying reminder of the predators that exist online that are preying on our children. If you’ve already had a conversation with your kids about being safe online and on social media, do it again. If not, start it now to better protect them.”

Police said the investigation into the incident was still ongoing. They asked anyone with information to contact them and said those who wish to remain anonymous can email RPDTips@RiversideCA.gov.