Nasrallah was idolized by many for leading the armed resistance to Israel’s 1982 invasion of southern Lebanon but later became a divisive figure in the Middle East.