Terror bid foiled, arms and ammunition seized