It happened at Boswell Place and Sunol Drive around 8:20 p.m.
Deputies said the chase started when a man, wanted for assault on an officer, pointed a gun at another officer at Indiana Street and Olympic Boulevard.
It ended about five minutes later at a second location when the suspect again pointed a gun and deputies fired.
The suspect was taken to the hospital in critical condition.
No deputies were hurt.