A person who attempted to rob a bank Friday in northern Illinois was shot and killed by a security officer.

Just before 4 p.m., a male of unknown age tried to rob an Alpine Bank branch at 2218 N. Mulford Ave. in Rockford, according to the FBI.

Membership has its privileges! JOIN the IFPO and see the benefits!

The robber walked into the bank and fired a round of shots at the ceiling with a handgun, police said. He then fired shots at an armed bank security guard. The guard returned fire and struck the robber at least once.

The man collapsed near the entrance of the bank and was pronounced dead at the scene, police said.

The Winnebago County coroner’s office did not confirm the death or provide additional information Friday night.

Find out how YOU can become a Certified Protection Officer with the IFPO!

No other injuries were reported.

Detectives from the Rockford police are conducting a homicide investigation.