The man was injured but was "talking at the hospital" after the incident, police said. The officer was unharmed.