CHEYENNE, Wyo. (AP) — A student accused of using a gun to break into a vehicle outside a Wyoming high school has pleaded not guilty.

Matthew Carabajal, 17, on Monday pleaded not guilty to felony aggravated burglary of a motor vehicle with a deadly weapon, misdemeanor property destruction and misdemeanor marijuana possession in his first Laramie County District Court appearance before Judge Steven Sharpe.

A Laramie County Circuit Court judge previously dismissed a felony theft charge.

Court documents say the school was on lockdown for about 20 minutes on Feb. 28 when Carabajal allegedly shot a gun through the front passenger window of a fellow student's unoccupied vehicle and then stole a backpack out of the vehicle.

Carabajal's trial is scheduled for Aug. 6.