Massachusetts man accused of making bomb threats against Maine town office