Iranian state television confirmed the death of the cleric and several family members, and Iran announced 40 days of mourning.