Chicago police announced Wednesday that they have made an arrest in the killing of a Cook County judge there earlier this week.

Cook County Associate Judge Raymond Myles, 66, was fatally shot early Monday morning outside his house on the city’s South Side. A 52-year-old woman was wounded in the shooting.

Police had said that while the shooting could have been a robbery attempt, they considered Myles’s killing “a direct attack on the criminal justice system.” The shooting comes as Chicago has been racked by a surge in gun violence and killings in recent years.

On Wednesday afternoon, Chicago officials announced the first charges in the case.

Joshua Smith, 37, was charged with murder, according to Anthony Guglielmi, a police spokesman. The killing was a robbery and “not a random robbery,” Guglielmi wrote in an email Wednesday.

The Chicago Tribune reported that Smith was suspected to be the getaway driver in the killing.

According to police, a “close associate” of Myles walked outside Monday morning as they were preparing for a morning workout. She ran into a man, who shot her in the leg, a police detective said at a news conference on Monday. Myles went outside and was also shot, authorities said.

In a statement Monday, Timothy C. Evans, chief judge of the Cook County Circuit Court, praised Myles “for his kindness and his impartial administration of justice.”

Myles joined the court nearly two decades ago after being appointed to fill a vacancy in 1999, Evans said. He was appointed an associate judge two years later.

An investigator near Cook County Circuit Court Judge Raymond Myles’s home. (Zbigniew Bzdak/Chicago Tribune via AP)

“I have always known Judge Myles to be focused and determined in the pursuit of justice, and his conduct earned him the confidence and respect of the people who appeared before him,” Evans said.

Police say detectives investigating the killing have reviewed surveillance video and identified people of interest in the case. The FBI in Chicago is offering a reward of up to $25,000 for any information that leads to the apprehension of a suspect.

Chicago has seen an increase in violence recently, with the city’s 762 homicides in 2016 marking its deadliest year in two decades. This has been repeatedly invoked by President Trump, both during the 2016 campaign and since he took office, notably with statements suggesting that he might send “the feds” to the city. Police and city officials there have said they welcome such help, asking for more federal gun prosecutions and more federal agents on the ground.

The number of people killed through the first three months of 2017 was slightly down from last year but still represented a deadlier first quarter than the city had seen in previous years. Through Wednesday, there have been 164 homicides this year, according to a tally kept by the Chicago Tribune.

Further reading:

Trump calls Chicago violence ‘very easily fixable’ and blames it on political correctness

Chicago residents think kids growing up there are as likely to be violent-crime victims as college graduates

Trump says he may send ‘the feds’ to Chicago. Federal agents are already there.

Chicago police to Donald Trump: ‘If you have a magic bullet to stop the violence,’ let us know