The deputy was shot during a traffic stop but was saved by his ballistic vest, the sheriff said