Video shows officer's encounter with knife wielding man