Parents and pupils have been warned that the building is likely to be closed for “six to nine months as a minimum”