Answer
Caught in the act, Czolgosz's assassination attempt on President McKinley was foiled when he was apprehended at the scene by bystanders who witnessed the shooting and apprehended him before he could escape. His immediate capture ensured that he faced justice for his actions and ultimately stood trial for the assassination.