I'd probably use something like this.
Ingested antiparasitic meds seem to work the best (IME) for killing these hellish worms.