Oman's Gulf Arab neighbours have condemned the rare attack in the sultanate which killed six people on Tuesday at a Shia mosque.