A North Carolina State University student was involuntarily committed last month for mental health treatment after confessing to campus police that he had planned to going on a killing spree, according to a court document.