Maybe I missed it in previous posts, but have you checked local law on whether or not you can shoot pest animals and wildlife that puts people and property in extreme danger? That's really the only good way to deal with the problem of an aggressively trespassing bear. Electric fences may work, but it will move on to the neighbor's house if it is hungry enough. Relocation is a farce, because it doesn't change it's behavior. Animals like this are VERY DANGEROUS and should be killed. Don't get me wrong, I think they are beautiful creatures and have a role to play in nature, but your back yard isn't "nature".
I spotted a cougar across the street from my house in a field a while back. I have a very loud and large dog that I believe keeps it at bay, but we also have deer around that brings it close. That said, I will look at and enjoy it from a distance, marvel at it's wild beauty try to even shoot it with my camera, but the instant it crosses my property line and goes after my pets or chickens it becomes a threat to my human family and I am going to blow it away (hopefully this never happens). To wrap it up...I would consider your bear on my property to be a threat to my family's safety and would dispose of the animal, but each property owner should have the right to determine the threat level to their own family and act accordingly within their property.