Officer was backing away from the kid, and turned to run away from him. The officer was actively retreating from the attack at the time the shots were fired.
Two officers were present. It is not clear from the video who fired the shots. It is very clear, however, that the kid was actively attacking the officer.