MINNEAPOLIS (AP) — Some details are being released in connection with the death of a man who was shot by Bureau of Criminal Apprehension agents during an undercover investigation.

The St. Paul Police Department says 31-year-old Adam Jo Klimek of Alexandria died Tuesday after he was shot.

READ MORE: Minnesota House Approves Recreational Marijuana Bill, The First-Ever Vote Of Its Kind In The State

Police said on Thursday that BCA agents were in Alexandria working an undercover operation involving the solicitation of minors when they tried to arrest Klimek, and he charged at three agents with a knife.

Two agents — Beth Eilers and Dustin Vanderhagen — shot at Klimek. Police say the agents immediately rendered aid and called paramedics. Klimek died at the scene.

READ MORE: Why Is The Walleye Minnesota's Most Popular Fish?

The Midwest Medical Examiner’s Office is working to determine the cause of death.

The St. Paul Police Department is investigating at the BCA’s request.

MORE NEWS: Former Minneapolis Police Officer Talks About His Decision To Leave: 'I Did It Out Of Principle'

(© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)