But on Friday, Republicans, from Mr. Trump on down, made it clear that Mr. Sayoc was not one of them. In fact, the president said that the coverage of Mr. Sayoc’s political leanings was a result of the news media trying to pin the attempted bombings on his politics.
“We have seen an effort by the media in recent hours to use the sinister actions of one individual to score political points against me and the Republican Party,” Mr. Trump said. “The media has tried to attack the incredible Americans who support our movement to give power back to the people.”
Senator Thom Tillis, Republican of North Carolina, also took the stage and thanked Mr. Trump for capturing “that animal who sent bombs,” referring to Mr. Sayoc, adding, “There’s no place for that in the United States.”
The attack on the news media was the culmination of a long, active day for Mr. Trump. At 3:14 a.m., a post appeared on his Twitter account criticizing CNN for unfavorable coverage, with Mr. Trump writing that “when I criticize them they go wild and scream, ‘it’s just not Presidential!’”
As they have for months, CNN journalists at the rally on Friday night worked alongside hired security guards. The network’s New York City office received an explosive device on Wednesday in a package addressed to John O. Brennan, a critic of Mr. Trump who served as President Barack Obama’s C.I.A. director.
Most of the people and organizations on the receiving end of the packages have been targeted by Mr. Trump at his rallies. Mr. Obama and Hillary Clinton, who ran against Mr. Trump in the 2016 presidential race, were among the prominent figures who received explosive devices. Representative Maxine Waters, Democrat of California and a frequent rally punching bag, also received one.
Mr. Trump brought up Ms. Waters briefly on Friday, but then stopped, saying he wanted to “be nice.”
Pollsters have said that the risks that Mr. Trump is taking by alienating more moderate voters could be mitigated by using essentially unlimited airtime to hit at enemies and tout his accomplishments.