A white man arrested last week for shooting two people at a Kansas bar says he thought he had killed some “Iranian people”.

Adam Purinton, 51, was arraigned in court on Monday with first-degree murder and two counts of attempted first-degree murder.

He fled the scene of the murder at a pub in Olathe and went to a restaurant where, according to the police, he confided in a staff member.

According to witnesses, Purinton shouted “get out of my country” at two Indian men, Srinivas Kuchibhotla and Alok Madasani, before opening fire at them in Austin’s Bar and Grill.

“He asked if he could stay with me and my husband, and he wouldn't tell me what he did. I kept asking him, and he said that he would tell me if I agreed to let him stay with me,” the barmaid said.

“Well, I finally got him to tell me and he said, like, that he shot and killed two Iranian people in Olathe.”

The FBI has been investigating whether the shooting incident constitutes a hate crime.

The shooting came amid raised concerns over the treatment of immigrants, who have been targeted by US President Donald Trump’s ban imposed on travelers from seven Muslim majority countries, including Iran.