The officer was able to jump out of the car while it was still moving, police said