Trump's tweet seemed to refer to a separate shooting at a church in Sutherland Springs, Texas that took place last week.

US President Donald Trump posted a message of support on Twitter after a gunman opened fire at people in several locations in Northern California, including an elementary school, on Tuesday (14 November). At least five people were killed and 10 others were injured in the shooting rampage before the gunman was shot dead by police.

However, Trump's tweet seemed to refer to a separate shooting at a church in Sutherland Springs, Texas that took place last week on 5 November.

"May God be with the people of Sutherland Springs, Texas. The FBI and Law Enforcement has arrived," Trump tweeted. The tweet was nearly the same as the message he posted about the Sutherland Springs shooting last week.

It isn't clear if the tweet was mistakenly resent or if Trump meant to respond to Tuesday's shooting in the rural community of Rancho Tehama in California.

However, Twitter users immediately pointed out the glaring mistake and tore into Trump accusing the president of using "copy and paste" to post his first message addressing the latest US shooting.

"Are you out of your mind?" one Twitter user furiously asked.

"Did u just copy & paste this & forget to change the city?" one user tweeted. Another added: "Did you reuse this tweet for the last mass shooting? Understandable. It's difficult to keep track of all of them."

Others voiced concerns that the tweet was not taken down for several hours. It was still live at the time of publication.

"The fact that the U.S. president can't even keep track of all the mass shootings is a fairly compelling argument for gun reform," Melissa McEwan wrote.

"The President of the United States is tweeting at midnight about the wrong mass shooting and it's like the 500th most insane Trump story of the week," a user said.

Screenshot/IBTimes UK

Trump seemed to mistakenly tweet a message of support for the wrong US shooting and Twitter furiously slammed him for it.Isaac Brekken/Getty Images

Trump is confusing his mass shootings. He probably meant Northern California, but it really makes no difference to him. It's not like he's going to do anything about them. #GunControlNowpic.twitter.com/Yp9vV9bo7x

No way, it was a cut and past, he forgot to change the location, and so far over 22k of his followers have âliked itâ and over 4k of them retweeted it...with no clue either. They all just amplified his careless, shameful and unpresidential mistake. #UnfitForOfficepic.twitter.com/6eHbz83Mlq

No way. I thought people were joking. Donald Trump actually did tweet about the wrong mass shooting. Good lord. I know he's not the brightest, but it's wild we have such a big issue that POTUS can mix up the tragedies. pic.twitter.com/ec9ho0gUsJ

1. We have too many mass shootings. ONE is too many.2. That's no excuse for a POTUS confusing them. Carelessness is callousness.3. Trump's done nothing to address root causes. His presence exacerbates the crisis.