CINCINNATI -- University of Cincinnati police arrested the person they said fired a shot on the college's campus last week.

No one was injured in the shooting, but it prompted a campus lockdown for more than an hour as authorities searched the area for the shooter.

Police arrested Anthony Pierre, 18, of West Chester, and charged him with inducing panic and discharging a firearm at or into a habitation, UCPD announced Wednesday.

Pierre, who is not a UC student, was attempting to buy marijuana from UC students off campus on Jefferson Avenue and fled without paying, according to police. He dropped his cellphone as he was running, and the students who were ripped off found it, according to court records.

Pierre made contact with the students who had his phone and they arranged to exchange the marijuana for the phone outside Dabney Hall on the UC campus, according to court records.

As Pierre approached the students, he yelled "give me my [expletive]," according to court records. The students scattered and Pierre fired one shot from a handgun, then he also ran.

Police had previously said they suspected the incident was related to drugs because they found marijuana at the scene.

"The safety of the UC campus community is of the highest priority," James Whalen, UC's director of public safety, said. "Our police officers and team of investigators worked quickly to collect information and safeguard all students, faculty and staff."