A major tragedy was averted as the army today recovered an IED planted by terrorists in a passenger shed in the Rafiabad area of Sopore. The IED was planted on the Baramulla Kupwara highway. The bomb disposal squad was rushed to the spot to defuse the IED.