COTTAGE GROVE, Ore. (AP) — Deputies shot and killed a man after responding to a dispute involving gunfire at a commercial marijuana facility in Cottage Grove, Oregon.

Sgt. Carrie Carver of the Lane County Sheriff's Office said Thursday that deputies initially couldn't find the suspect on the large parcel of land. They eventually discovered a building where they believed the man was hiding, and used a loud speaker to call inside.

She said the man left the building at 3:45 a.m. and "engaged deputies with a firearm." Two deputies fired rounds, striking the suspect who was then taken to a hospital where he died.

Carver identified the man as 40-year-old Joey K. Loop.

No deputies were hurt.

Investigators are looking into whether the use of force was legally justified. The deputies will remain on paid administrative leave during the investigation.