Two deputies were shot outside the Salt Lake County Sheriff's Office and Unified Police De-partment headquarters in South Salt Lake Saturday morning. The suspect was killed.

Shortly before 10:30 a.m., the two deputies were patrolling the complex, which also includes the Salt Lake County Metro Jail, Fox 13 reports.

They encountered a man on the grass near the north parking lot, and as they approached him, he pulled out a handgun and shot at them, authorities say.

Investigators are working to determine exactly what happened, but Sheriff Rosie Rivera said everything happened very fast and at least one of the deputies fired back, killing the suspect.

One deputy was hit in the cheek and is in stable condition. He sustained "quite a bit of damage" to his face, Rivera said Saturday afternoon, but he is expected to be released from the hospital soon.

The other, who was shot in the eye, is in critical but stable condition. He will remain in the hospi-tal for surgery but is expected to survive.