The energy from the photon causes the CO2 molecule to vibrate. Some time later, the molecule gives up this extra energy by emitting another infrared photon. Once the extra energy has been removed by the emitted photon, the carbon dioxide molecule stops vibrating.