Texas Tech police went to check on the welfare of the student earlier on Monday and, after discovering drugs, the officers took the person to the school's police station, university spokesman Chris Cook said in an email.
The student pulled out a gun at the station and shot an officer in the head and then fled on foot, Cook said. The officer died.
A special weapons and tactics (SWAT) team was sent to look for the suspect after the shooting, Lubbock police Officer J. Rodgers said by phone.
He confirmed that one person was shot at the school's police division in Lubbock, a community of more than 240,000 people more than 300 miles (483 km) west of Dallas.
The suspect was later taken into custody, Lubbock police said in a statement on Twitter. It did not provide further details.
Texas Tech later tweeted that the lockdown had been lifted after the suspect was apprehended.
(Reporting by Alex Dobuzinskis in Los Angeles; Editing by Peter Cooney, Andrew Hay and Paul Tait)
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed.)
Follow NDTV for latest election news and live coverage of assembly elections 2019 in Maharashtra and Haryana.
Subscribe to our YouTube channel, like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.