A secondary school in Chelmsford has been forced to partially close after a thunderstorm caused the school to be hit by lightning.