The suspect and a deputy were injured, but not by the gunfire.