This circuit of an old publication produces the insect-like noise that drives them away. The circuit uses a piezoelectric transducer at the output and the frequency depends on the capacitors and these components must be changed for the best effect. The consumption is low allowing for battery power.