Madison County school officials in Alabama say a student is in custody after a handgun was recovered from their backpack Wednesday.