This isn't a bug at all. Working entirely as intended. You aren't meant to kill that enemy for that quest. Maybe you should read the actual quest instructions on the side of your screen.