Radiative transfer and batch photochemical reaction in a plane slab