An Aiken High School student was detained after a school resource officer found prescription medication, ammunition and knives in his vehicle on school grounds, according to the Aiken Department of Public Safety.

Benjamin Wade Riley, 17, of Aberdeen Drive, was charged with possession of a controlled substance and placed in the Aiken County detention center, but had been released as of Thursday afternoon.

A school resource officer on foot patrol saw a folding knife blade inside Riley's pickup in the parking lot on Tuesday, according to a report. When Riley was asked if he had anything illegal in the truck other than the knife, he replied, “maybe some ammunition.”

After getting consent from Riley to search the vehicle, officers found 21 shotgun shells, 12 rifle bullets, two folding-blade knives, two multi-tools, two lighters, a blade knife, a set of brass knuckles, a razor blade, cigarettes, five white pills and 10 yellow pills “tentatively identified” as Hydrocodone.