Police shoot, injure Massachusetts man allegedly armed with