A teacher accused of sex with a student took matters into her own hands as police arrived to question her