This should normally work as you said above, looks like some kind of bug I think that none has ever managed to report/fix. Other than that, since the action "kill" happens in a gunfight that takes place during a heist's progress then should be counted as a kill according to the certain standars which comes along with the equal rewards accordingly.
Going Positive.