Adiabatic dynamics of a quantum critical system coupled to an environment: Scaling and kinetic equation approaches