Bar Harbor Bancshares in Maine has struck its first deal in its 125-year history, announcing late Tuesday that it is buying substantially all of the assets and deposits of Border Trust Company in Augusta.