Saudi authorities have ordered the demolition of a mosque in which Shia cleric Sheikh Nimr Baqir al-Nimr led the prayers.