USDA Wildlife Services information pertaining to Bears in New Hampshire towns:
Prime black bear habitat includes deciduous forests (oaks, maple, beech etc.), wetlands, and riparian (along rivers) zones. The natural areas surrounding your town provide very good habitat for black bears. Many human-bear conflicts arise when bears frequent properties to access food attractants that are found around homes. The most common attractants are birdfeeders, unsecured garbage, and compost piles which include food scraps. Livestock, such as chickens and pigs, can also attract bears when not properly protected. Electric fencing is the most effective way to protect livestock. In most cases removing the attractant the bear(s) are utilizing eliminates the bear problem. It is also helpful to harass bears with noise, such as banging pots and pans, or using compressed air horns to scare them away.
Bears & Chickens:
Bears & Birdfeeders: