Donald Trump. Drew Angerer/Getty Images After ISIS claimed credit for an attack at Ohio State University on Monday, President-elect Donald Trump tweeted on Wednesday that the attacker "should not have been in our country."

Abdul Razak Ali Artan, an 18-year-old Somali-born student who came to the US legally in 2014 as a refugee, drove into a group of pedestrians on OSU's campus before using a butcher knife to stab people, officials have said.

Eleven people were sent to the hospital with injuries. A campus police officer killed Artan at the scene.

Amaq, ISIS's unofficial news agency, released a statement on Tuesday saying ISIS was responsible for the attack.

Trump responded with a tweet on Wednesday morning.

"ISIS is taking credit for the terrible stabbing attack at Ohio State University by a Somali refugee who should not have been in our country," he wrote.

Artan lived in Pakistan for seven years before coming to the US. He and his family left Somalia in 2007. He had legal permanent resident status in the US.