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: Man, 78, Dies After Car Collides With Pickup South Of Kellogg

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: Four-Run Ninth Seals 9-2 Win For Twins Over Kansas City

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: 'This Is Historic': Lawmakers Reach Tax Cut Deal Ahead Of Session Deadline

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