Light-induced heat and mass transfer in a single-component gas in a capillary