Cops: Teen admits killing pregnant classmate