HOUSTON — A college freshman shot and killed a campus police officer at Texas Tech University in Lubbock on Monday night after the student was taken to the university police station for questioning in a drug-related case, the authorities said.

The on-campus shooting caused the authorities to put the university on lockdown as they searched for the student, who fled the station on foot and was identified by the university as Hollis A. Daniels, 19. The university’s Twitter account and online emergency-alert system urged those on campus to shelter in place starting at about 8:30 p.m. on Monday. Mr. Daniels was caught about an hour later, and the lockdown was lifted.

He was charged with evading arrest. Other charges were pending.

The episode began earlier Monday evening, when officers with the campus police department made a so-called student welfare check at Mr. Daniels’s room. The officers entered his room and found evidence of drugs and drug paraphernalia, according to a statement from a spokesman for the university, which is in West Texas. Officers took him to the police station for a “standard debriefing,” said the spokesman, Chris Cook. He then pulled out a gun and shot a campus officer in the head, killing the officer. The officer’s name was not immediately released.

Officials said a Texas Tech police officer later tackled Mr. Daniels as he fled near the Lubbock Municipal Coliseum and took him into custody, assisted by Lubbock officers. Mr. Daniels is from Seguin, a city nearly 40 miles east of San Antonio.