Chatter over Madrid attack's success helped spur warning