What went on in the officer's head is something that I can only guess but, based on over 30 years of experience in the doing, teaching and studying of the police profession, I would venture to say that race had nothing to do with the behavior displayed and that the sub-culture of police work dictated the action, more than any possible bias or prejudice.
CNN: Commentary: Obama's rush to judgment on police