OLATHE, Kan. -- A man charged withat a suburban Kansas City bar pleaded guilty Tuesday to murder in the slaying that fanned fears of anti-immigrant violence following .
Witnesses said Adam Purinton, who is white, yelled "Get out of my country!" before firing at two men who had stopped for an after-work drink at Austin's Bar and Grill in Olathe, Kansas.
Srinivas Kuchibhotla was killed in the Feb. 22, 2017, attack. His friend Alok Madasani was wounded. The men, both 32, had come from India to the U.S. as students and worked as engineers at nearby GPS-maker Garmin.
Another man, Ian Grillot, was wounded when he tried to intervene.
Purinton faces life in prison with no chance of parole for 50 years when he is sentenced May 4 for premeditated first-degree murder.
At the time of the shooting, officials in India expressed concern about their citizens' safety in the United States.
Kuchibhotla's widow, who was not present at the hearing, issued a statement saying she hoped the guilty plea would "send a strong message that hate is never acceptable."
"We must understand and love one another," Sunayana Dumala said.
According to court documents, Purinton was asked to leave the bar when he made derogatory comments. He returned a short time later with a gun.
Madasani told detectives that the gunman asked the men if their "status was legal" before he opened fire, according to an affidavit released last year.
After the shooting, Purinton drove 70 miles east to Clinton, Missouri, and stopped at a restaurant, where he allegedly confessed to the killings to a bartender, who called police.
Purinton, a 52-year-old Navy veteran, was a regular customer at Austin's. Neighbors in the Olathe cul-de-sac where he lived told The Associated Press after the shooting that he became "a drunken mess" following his father's death about two years before the shooting and had physically and mentally deteriorated.
He still faces federal hate crime charges in the slaying. Federal prosecutors have not determined whether they will seek the death penalty.