Authorities say three deputies were leaving King Taco restaurant in the 4500 block of East Third Street about 4 a.m. when they were confronted by three suspects.
One man pulled out a knife and stabbed a deputy.
Another deputy told the man to drop the knife. When the suspect didn't comply, the deputy fired one shot, hitting the man.
Both the deputy and the suspect were taken to the hospital.
The deputy is in stable condition and the suspect is critical.
Sheriff's homicide detectives are investigating the shooting and stabbing.
That suspect faces attempted murder charges.
The Associated Press contributed to this report.