I believe peppermint essential oil is effective at deterring some pests, but I don't know how the smell would effect a chameleon. It is very potent. I wouldn't use it in or very near the enclosure or a free range.
What type of pests are you concerned about?