Unsteady energy transfer in a layer of gray gas by thermal radiation