Iranian state media said a faulty electrical heater sparked the blaze as crowds gathered in the Arg Mosque for a major Shi'ite religious festival , Ashura .