A fire-hit former school described as a “blight” on the community will reopen as an educational facility.