I second the electric fence. I have all sorts of solar fencers, mostly used for my bayco horse fence. They work great.
I too would hate to kill it if not needed. I have had foxes in and around my acreage for years, I think it was this year that they finally got a cat or two. Unless they show signs of rabies or pose a risk to my kids, they can stay and eat pests.
The other day My dog started barking far more furiously at the door than usual. Curious as to what she saw, I had a look and was like, dang that is the largest most beautiful house cat I've ever seen. Then I saw the short tail and I realized it was a bob cat.
My dog when it sees a regular house cat, goes 6 out of 10 nuts, but this was an 11.
The bobcat could not see my dog through the mirror tinted window, but could hear her. It was looking at tinted window, but it was not until my dog tried to smash through door that the Bobcat sauntered off. The furious barking had no effect other than inducing apparent curiosity.
The day before I had seen A large Coyote, which also caused an 11, and the day after a bunch of aggressive honeybees were bothering both of us.
I'm in a pretty urban area, I had heard coyotes yipping at some distance but have not seen one in 10+ years since the new development replaced the bushes.
Seeing the Coyote, and then bobcat the next day, and then dodging the PO'd honeybees, was unusual to say the least.
I warned the neighbors who have small kids, who also noticed the bees were behaving oddly and aggressively.
I train the chickens to go into the coop by feeding them in the coop before dark and locking them up. I also use an electric fence. Replacing chickens and then waiting for them to start laying is a pain.