The Texas Tech student charged with killing a campus police officer Monday was searched while in custody and somehow managed to have a weapon on him, authorities said.

Hollis Daniels, 19, encountered police after a gun was reported stolen from a home where residents said he had made a threat, Lubbock Police Chief Greg Stevens said Thursday.

Cops tracked down the suspects car, and the driver which was identified as Daniels refused to let them search the vehicle, the chief said.

Officers responded to the campus on reports of a student possibly carrying a weapon and acting erratically Monday, Texas Tech Police Chief Kyle Bonath said Tuesday.

The cop, who was identified as Floyd East Jr., conducted a welfare check in Daniels room and found evidence of drugs and drug paraphernalia, Bonath said. The student was then arrested on a drug charge.

Daniels, who wasnt handcuffed, was standing near East while being processed at the police station, according to an arrest affidavit.

Another cop left the room and recalled hearing a loud bang. When he returned, he found East with a gunshot wound. The cops weapon was in his holster, but his body camera was missing, the affidavit says.

The student fled the scene on foot, prompting the university to be placed on lockdown. A university campus spokesman told the Associated Press that Daniels didnt use a department firearm.

Daniels was later recaptured. He told investigators that he f—-d up and did something illogical, after his arrest. He also admitted to shooting East, according to the affidavit.

He has been charged with capital murder of a peace officer and was indicted Wednesday for possession of a stolen firearm. He was being held on $5 million bond.

With News Wire Services