Student was terrorist, prosecutor says