A South Carolina high school student accused of shooting at a campus police officer and planting explosive devices around the school will stay in state custody for now.