President Trump deleted two retweets Tuesday morning, including one that showed the logo of CNN being hit by a train, following blowback on social media.

The first tweet, which appeared to be a doctored political cartoon, showed a man covered with the CNN logo being hit by a train. "Nothing can stop the #TrumpTrain!!" said a message accompanying the image.

The tweet, which came just days after a man drove a car through a group of people protesting a white supremacist rally, quickly raised eyebrows. Mr. Trump was heavily criticized for his response to that attack, which killed one person and left many others wounded.

Get Breaking News Delivered to Your Inbox

Minutes later, Mr. Trump retweeted a person who said that he was considering a pardon of former Arizona Sheriff Joe Arpaio because he is a "fascist."

He's a fascist, so not unusual. — Mike Holden (@MikeHolden42) August 15, 2017

The user, who was intending to mock Arpaio and Mr. Trump, later joked that he was leaving Twitter because he would "never top this re-tweet."

Mr. Trump then deleted both retweets. A White House official said the CNN tweet had been posted inadvertently, according to The New York Times. Mr. Trump has criticized CNN as "fake news" numerous times, including on Monday.

Late Monday night, Mr. Trump also retweeted Jack Posobiec, a right-wing social media personality known for promoting conspiracy theories involving Democrats, including one known as #Pizzagate.

Meanwhile: 39 shootings in Chicago this weekend, 9 deaths. No national media outrage. Why is that? https://t.co/9Crutnnrp8 — Jack Posobiec 🇺🇸 (@JackPosobiec) August 14, 2017

That retweet was still on Mr. Trump's Twitter page as of Tuesday morning.