Police: Student confesses to making bomb threat