Not excusing Yanez, however from my understanding the training he would have received, would definitely have told him to fire multiple times, possibly to keep firing until the gun was empty. This is standard practice for police.
Which is kind of ridiculous, because now he has to reload while the second person in the car can grab the gun. I mean, if the cop was actually thinking that the people in the car were trying to kill them.