Devastating terror bid foiled in Karachi