Observation of the M1 giant resonance by resonance averaging in 106Pd