The suspect in a deadly movie theater attack was barred from the University of Colorado campus for threatening a professor, weeks before he opened fire at a midnight showing of the new Batman movie, prosecutors said in court documents released Friday.