The officer had his emergency lights on when he was struck by another vehicle, police said