Washington (CNN) Democratic presidential candidate Beto O'Rourke reacted angrily Sunday to an inquiry about the motivations behind the deadly massacre in El Paso, Texas, where the shooter allegedly targeted immigrants, saying "connect the dots" because President Donald Trump is "promoting racism."

The comment from O'Rourke came during a vigil for victims of the shooting, which left at least 20 dead, after the former Texas congressman and El Paso native was asked by a reporter, "Is there anything in your mind that the President can do now to make this any better?"

"What do you think? You know the s--- he's been saying. He's been calling Mexican immigrants rapists and criminals. I don't know, like, members of the press, what the f---? Hold on a second. You know, I — it's these questions that you know the answers to," O'Rourke replied.

He continued: "I mean, connect the dots about what he's been doing in this country. He's not tolerating racism, he's promoting racism. He's not tolerating violence, he's inciting racism and violence in this country. So, you know, I just — I don't know what kind of question that is."

The alleged shooter, a 21-year-old white supremacist, is believed to have authored a racist, anti-immigrant document that laid out a dark vision of America overrun by Hispanics, according to police.