Place it right after the failed moment in your edit, then follow it with the sad violin for a beat before cutting to the next scene. If the fail was a bad guess, put the wrong answer sound just before it so the sequence makes sense.