Tribesmen in outlying villages prepared to defend the town from possible attack , raising the prospect of a clash with the hardline al-Shabaab , who claimed that they had arrived to stamp out the pirate menace .