The police said that relentless humiliation and rebuke from her science teacher over the last few months forced the student to take the extreme step.