LOMBARD, Ill. — One of the men involved in an armed robbery that resulted in a man’s death and a Lombard detective being shot is being held without bond, according to DuPage County State’s Attorney.

Anthony Brown, 31, of Chicago, is charged with attempted first-degree murder, aggravated battery, aggravated discharge of a firearm at an officer and armed robbery with a firearm, all Class X felonies, according to a press release.

For the first time, authorities have identified Brown and Pierre Thompson, who was shot and killed by a detective, as the men involved in the robbery and shooting.

In the press release, the state’s attorney alleges Thompson and Brown entered a smoke shop Wednesday afternoon on West Roosevelt Road, showed a handgun, stole money from the cash register and then went into the back of the store where they found the owner.

Brown and Thompson ordered them to get on the floor, hit the owner in the head with the gun and stole their wallets, cell phones, $600 from a file cabinet and left, according to the release.

That’s when two Lombard police officers found them and the state’s attorney’s office said Thompson fired shots as the officers got out of their car. One detective was hit in the leg and returned fire, killing Thompson.

Anthony Brown, 31, of Chicago, was arrested after his alleged role in a robbery in Lombard that left another man dead and an officer shot.

Brown was arrested at the scene “within seconds” of the shooting. The detective was taken to a local hospital by another officer and is being treated for non-life-threatening injuries.

The detective was identified by assistant state’s attorney Joseph Lindt in court Saturday as Detective Ryan Postal, 33, the Daily Herald reported. The Village of Lombard said he is a six-year veteran of the department.

Thompson fired shots from a gun modified with a switch to allow it to be fired as a fully automatic weapon, according to the release. DuPage County State’s Attorney Robert Berlin said a preliminary investigation shows Thompson fired at least seven shots “in a very short period of time.”

Although Brown is not accused of pulling the trigger, Berlin said the law in Illinois is clear and he can still be prosecuted for the alleged actions.

“When there is a common plan or scene designed to commit criminal acts, those who are in the group are responsible for all criminal acts committed,” Berlin said.

He said his office will respond with every legal tool available to control violent crime and keep the community safe.

“We as a society must never normalize or accept the type of violent behavior alleged in this case,” Berlin said in the release. “This behavior cannot stand and in DuPage County we will not sit idly by while criminals terrorize our communities.”

Berlin said he is thankful the officer is expected to survive his injury and thanked him for his service.

“Crimes like these have a huge impact on the community. Unfortunately, we see more and more violence every single day,” Berlin said.

“I am extremely grateful that the officer is expected to recover and on behalf of the entire Lombard Police Department, I wish him a speedy recovery and wish him well, physically and emotionally,” Lombard Police Department Chief Roy Newton said in the release. “I thank all of our partners in law enforcement who came to our assistance.”

A source told WGN the detective underwent surgery, which is said to have gone well. We are also told the detective stood up briefly Friday and could be discharged as early as Saturday.

The officer-involved shooting is still under investigation by the MERIT Public Integrity Team.

Brown is scheduled to be back in court on Dec. 27 for an arraignment.