Relationship of Type III Radio Bursts with Quasi-periodic Pulsations in a Solar Flare