Do not chase your dog, instead wait nearby for him to relax as much as possible and presenting them with a strong smell (chicken, bacon, ham) can help.
Once your dog lets go, provide them with something you'd rather they have instead and/or provide them with a reward like a treat and your excitement to let them know that letting go is more enjoyable than not.