LUBBOCK, Texas – A Texas Tech University student confessed to killing a campus police officer who had been booking him on a drug possession charge, telling detectives he had done "something illogical" and that "he was the one that shot their friend," an investigator said.

In an affidavit released Tuesday, Det. Thomas Bonds of the Lubbock city police department said Hollis Daniels III confessed to killing Officer Floyd East Jr. after his recapture Monday night.

University officials said East went to Daniels' room to perform a welfare check and found evidence of drugs and drug paraphernalia. Authorities have not said what prompted the welfare check. East arrested Daniels and took him to the campus police station to book him.

According to Bonds, the 19-year-old wasn't handcuffed while East was processing the paperwork. Another officer left the room and then heard a loud bang. When he returned, he found East mortally wounded and Daniels gone. East's body camera was also missing, but his service weapon was still holstered.

The campus was locked down for about an hour Monday night and the school's more than 36,000 students were ordered to shelter in place during the search. Daniels was recaptured following a foot chase near the police station. He had the body camera and a handgun, Bonds wrote.

It's not clear why Daniels wasn't placed in handcuffs or whether he had been searched when arrested. Police also haven't said whether they believe Daniels used his own gun or one belonging to the department. University officials did not respond Tuesday to messages seeking additional details. They scheduled a news conference for later Tuesday.

Daniels, who is from the San Antonio suburb of Seguin, is charged with capital murder of a peace officer and is being held in the Lubbock County jail on a $5 million bond. Online jail records don't indicate whether he has an attorney who can speak on his behalf.

He's had prior run-ins with the law. Daniels was charged two years ago in Guadalupe County, which includes Seguin, with possession of drug paraphernalia, but the case was dismissed. Court records obtained by the Lubbock Avalanche-Journal show he was charged last year in Lubbock County with drug possession.

Daniels is the son of H. A. "Dan" Daniels, a well-known figure in Seguin. The elder Daniels was a city councilman from 1998 to 2002 and again from 2006 to 2010, when term limits prevented him from running for re-election. He didn't immediately reply to phone messages seeking comment that were left at a family business and calls to the family's home got a busy signal.

The school's president, Lawrence Schovanec, said East's family is in the thoughts and prayers of the Texas Tech community. East, 48, joined the department as a dispatcher in 2015 and became an officer in May. It was his first job in law enforcement, according to the Texas Commission on Law Enforcement.

"I want to express my deep appreciation to the Texas Tech Police Department, Lubbock Police Department, Lubbock Sherriff's Office, and other state and federal law enforcement officials for their response," Schovanec said.

State Attorney General Ken Paxton went to the school Tuesday to show support.

Texas passed a law last year allowing students with concealed carry permits to bring guns into university classrooms and buildings. But a person must be at least 21 years old to get a concealed carry permit in Texas, so Daniels wouldn't qualify.

The state Democratic Party apologized Tuesday for a tweet it sent linking the campus carry law to Monday's shooting. The party had tweeted that allowing guns on college campuses "was a dumb and dangerous idea" but later backtracked and deleted the tweet.

Texas Gov. Greg Abbott issued a statement about the shooting late Monday, saying "hearts go out to the family of the police officer killed." Abbott also said he had mobilized state law enforcement resources to aid in the investigation.

Texas Gov. Greg Abbott issued the following statement after the shooting:

"First and foremost, our hearts go out to the family of the police officer killed at Texas Tech University. I have spoken to Chancellor Robert Duncan to offer my condolences, and I have mobilized the Texas Department of Public Safety to offer any assistance to the Lubbock Police Department. As the Texas Tech campus deals with this heartbreaking tragedy, Cecilia and I pray for the continued safety of the students and the entire community."

Texas Tech is a public research university in the city of Lubbock.

The school said Tuesday that support services would be available to students and staff in need of group or individual crisis counseling.

"Counseling resources are available to university employees through the Employee Assistance Program

"For any student seeking individual or group crisis counseling, the Student Counseling Center is available Monday-Friday, 8 a.m.-5 p.m. and by calling (806) 742-3674. Walk-in hours area available Monday-Friday, 12:30 p.m.-3:30 p.m. 24-hour mental health crisis support is available by calling (806) 742-5555.

"Staff in the Office of the Dean of Students are available to assist any student experiencing distress or in need of assistance. A Dean of Students staff member is available by calling (806) 742-2984."

Download the Click2Houston news app in your app store to stay up-to-date with the latest news while you're on the go.

Sign up for KPRC 2 newsletters to get breaking news, sports, entertainment, contests and more delivered straight to your email inbox.