The head teacher ended her life ahead of the publication of a report that downgraded her school.