If you have foxes, you have skunks too. Skunks provide hours of fun and enjoyment when they are trapped. (Laughing as I type this).You could always try trapping it too. I use the live trap method and make a little den next to the coop making it look like it’s an opening. I dip the trap in trap wax beforehand to remove scent and place bloody chicken meat inside to entice the fox. Cover with brush and branches. Not guaranteed to catch that specific animal but will get something. Removing a predator from the area opens up the area for another one to move in.