Section 165. A city or town may investigate any case of damage done by a dog of which the chair of the board of selectmen, mayor or animal control officer shall have been informed as provided in section 161. If the chair, mayor or animal control officer believes that the evidence is sufficient to sustain an action against the owner or keeper of the dog and believes that such owner or keeper is able to satisfy any judgment recovered in an action, the chair, mayor or animal control officer shall bring the action unless the owner or keeper pays the amount in settlement of the damage as the chair, mayor or officer deems reasonable before the action is brought. The action may be brought in the name of the chair, mayor or animal control officer prosecuting the action and the chair, mayor or animal control officer shall have the same powers and authority as animal control officers appointed under section 151 and acting under sections 136A to 174E, inclusive. All damages received or recovered under this section shall be paid over to the city or town treasurer.