BRANDON, S.D. (AP) — Authorities say a student brought an unloaded handgun to a Brandon high school to sell to another student.

Brandon Valley High School was locked down Tuesday morning after the student brought a small-caliber gun into the building.

Superintendent Jarod Larson says police were called after another student alerted administrators about the gun, which was unloaded.

The Argus Leader reports police were quickly on the scene and had the student in custody. The gun and two knives were found in the student's backpack.

Brandon Police Chief David Kull says no threats were made to other students.

Two students were taken into custody and released to their parents. Their age and gender were not released.

The school was temporarily placed on lockdown while police investigated.