Iranian state media has confirmed the death of Supreme Leader Ali Khamenei.