Judges agreed officer had reason to fire four shots at a knife-wielding suspect but not six.