Security forces averted a major tragedy when they detected a powerful Improvised Explosive Device (IED) planted by militants in the city outskirts on Srinagar-Baramulla road on Saturday, when separatists had called for a general strike against the killing of civilians in the Valley.