“Some rounds were fired in my direction, one went through the windshield and grazed the top of my head, entered the front part of my skull and exited the back of it,” the officer explained