SANTA FE, N.M. — Santa Fe police say a man who was shot by an officer at an apartment complex had thrown homemade explosives at officers and stabbed a social worker during a standoff.

State police identified the man as 24-year-old Anthony Benavidez. Lt. Elizabeth Armijo said in a written statement he had recently been evicted from apartment complex he broke into on Wednesday. Officers had been negotiating with Benavidez before he threw the explosives. Armijo says two SWAT officers shot Benavidez after they entered the apartment to arrest him.

Benavidez and the caseworker were taken to the hospital, where Benavidez died. The caseworker was later released.

The names of the officers involved in the shooting were not released. Santa Fe Police Department Spokesman Greg Gurule says five officers have been placed on leave.