A K-9 officer was shot while trying to apprehend a suspect in Vacaville on Wednesday, the police department said. Officials later said the K-9 lost one of its legs because of the shooting.