Man charged in school threat to remain in custody