Foxes are clever, very clever.
Trying to trap it wouldn't really work, either shoot it or get a rhea, emu or llama. (emus and rheas can deliver kicks that will kill foxes, and break your ribs if you're not careful, from what i've heard they're very hostile towards foxes)
They're very good guards...