The 17-year-old is charged as a juvenile with possession of a handgun on school property, sheriff deputies said.