Transition to stochasticity in a one-dimensional model of a radiant cavity