All you need is a oil jar, and to know where it is. Find the worm, throw the jar at the ground in front of it, then move backwards while keeping its aggression, that will kill it.

More Deathworm Encountering Tips