Dynamics of the quantized radiation field in an oscillating cavity in the harmonic resonance case