Updated

A nearly two hour police standoff has ended peacefully for the suspect in a teen girl's murder who officials say took a deputy's gun and escaped a Dallas hospital.

Franklin B. Davis surrendered shortly before 11 p.m. Tuesday. Officials say Davis grabbed a deputy's service revolver and fled Parkland Memorial Hospital at about 8:30 p.m.

He was found holed up in a car with the gun a short time later about a mile from the hospital.

The 30-year-old is awaiting trial in the murder of 16-year-old Shania Gray. MyFoxDFW.com reports Davis allegedly told authorities he killed the high school student because she planned to testify against him in a rape trial.

Her body was found Sept. 8 along a fork of the Trinity River. She had been shot and strangled.

Davis already had been charged with four counts of sexually assaulting Gray when he allegedly took Gray from her school.

Family and friends had said that when she was killed Gray's family was in the process of moving from one Dallas suburb to another so her father could be closer to work. Neighbors in Mesquite, the eastern suburb where the family lived for years, described Gray as friendly and caring.

According to relatives and an affidavit released by Carrollton police, Davis posed as a teenage boy on the Facebook social media page and bought a new cellphone to contact Gray and get information about the sexual assault case.

The two exchanged text messages, though Carrollton police spokesman Jon Stovall said he didn't know how many.

Davis told Carrollton police Gray was surprised to see him when he pulled up to her outside her school but got into his car because he wanted to discuss the case. He told police and several television stations that he drove her to an area near the Trinity River and shot her twice. He then stepped on her neck until she stopped breathing, the affidavit said. Her body was found two days later.

Click for more from MyFoxDFW.com.

The Associated Press contributed to this report.