Ysgol Dyffryn Taf, Whitland, was closed for pupils on Tuesday to enable emergency work to be carried out following a gas leak.