A search is under way for a man allegedly armed with a firearm in the vicinity of Pinjarra in Western Australia's Peel region.