Follow CBSMIAMI.COM: Facebook | Twitter

MIAMI (CBSMiami) – A student accused of bringing a knife to Piper High School made his first court appearance on Tuesday.

READ MORE: Broward Schools Superintendent Robert Runcie To Plead Not Guilty To Perjury Charge

A judge gave the 16-year-old 21 days of secure detention.

Cellphone video captured the aftermath of the incident Monday that led to a lockdown.

READ MORE: Coast Guard Offloads More Than Two Tons Of Seized Cocaine In Miami Beach

A student in a red shirt and shoes was taken into custody after bringing a knife to school and getting in a fight with another student.

The victim, who suffered an injury to a finger, was treated and released.

The teen faces aggravated battery charges.

MORE NEWS: Jaime's Law, Named After Parkland Shooting Victim, Reintroduced In Congress To Require Ammunition Background Checks

His name is not released because of his age.