Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

OLATHE, Kan. — Prosecutors on Thursday charged a 51-year-old man with murder and attempted murder after he allegedly started shooting in a crowded suburban Kansas City bar, killing one man and injuring two others, in an attack that some witnesses said was racially motivated.

Authorities repeatedly declined at a news conference to say whether the shooting was a hate crime although local police said they were working with the FBI to investigate the case.

Adam Puritan, of Olathe, Kansas, was arrested early Feb. 23, 2017 Henry County (Mo.) Sheriff's Office via AP

A bartender at Austins Bar and Grill in Olathe, Kansas, said that Adam Purinton used "racial slurs" before he started shooting on Wednesday night as patrons were watching the University of Kansas-TCU basketball game on television.

Srinivas Kuchibhotla, 32, died at an area hospital, police said. Alok Madasani, 32, and Ian Grillot, 24, were hospitalized and are in stable condition, they said. The Linked-in accounts for Kuchibhotla and Madasani say that they were engineers working at GPS-maker Garmin and had studied in India.

Local, county, state and federal law enforcement authorities attended the news conference where the murder charges were announced.

Asked if the presence of federal authorities indicated the shooting could be considered a hate crime, FBI special agent Eric Jackson said it was too early to determine.

"This was a violent crime and we want the best prosecution that relates to this because there are victims of this crime and we want the community to know that ... we're looking to make sure that the individual involved in this is held accountable for his actions."

The Olathe Police Department and Johnson County DA say Adam Purinton is charged with premeditated murder. — 41 Action News (@41actionnews) February 23, 2017

The Morning Rundown Get a head start on the morning's top stories. This site is protected by recaptcha

Police say the FBI will become involved in investigation if proven the shooting was a hate crime. — 41 Action News (@41actionnews) February 23, 2017

Bartender Garret Bohnen told the Kansas City Star that Kuchibhotla and Madasani stopped at Austins for a drink once or twice a week.

"From what I understand when he was throwing racial slurs at the two gentlemen (Kuchibhotla and Madasani), Ian (Grillot) stood up for them," Bohnen said. "We're all proud of him."

Witnesses also told the Star that Purinton yelled "get out of my country" before he opened fire.

Grillot said in an interview from his hospital bed that when the shooting broke out, he hid until nine shots had been fired and he thought the suspect's gun magazine was empty.

"I got up and proceeded to chase him down, try to subdue him," Grillot said in a video from the University of Kansas Health System posted on the Star website. "I got behind him and he turned around and fired a round at me."

Grillot said that the bullet went through his hand and into his chest, just missing a major artery.

"It's not about where he (victim) was from or his ethnicity," Grillot said. "We're all humans, so I just did what was right to do."

GoFundMe pages were started to help pay expenses for all three of the victims.

U.S. Senator Jerry Moran of Kansas posted a statement on Facebook saying that he was very disturbed by the shooting.

"I strongly condemn violence of any kind, especially if it is motivated by prejudice and xenophobia," Moran said.

Purinton was taken into custody just after midnight on Thursday morning at an Applebee's about 70 miles to the southeast of Olathe in Clinton, Missouri, authorities said.

Assistant Clinton Police Chief Sonny Lynch said an Applebee's bartender summoned police to the bar where the man was drinking because he said he'd been involved in a shooting. The unarmed Purinton was taken into custody and interviewed by detectives from Olathe.

"He mentioned he had been involved in a shooting and we went out there and picked him up," Lynch said.

The bar where the shooting took place was closed Thursday, with a sign in the door that said it would remain closed indefinitely.

Follow NBC Asian America on Facebook, Twitter, Instagram and Tumblr.