A teenager is in critical condition in hospital after being burnt with boiling water, allegedly by another pupil.