If you don't want the fox harmed you can either buy a live trap or call your local wildlife and game office and they will come trap it for you and have it removed. Otherwise, the fox now has a food source so it will still come back over and over again. unfortunately once they become a problem...