So, honest question, what's worse, helping the military be more accurate in who they attack, or abstaining and perhaps there are more mistakes, and/or collateral damage as they choose the best times/locations to strike that they can find, not the best that
could be found. On the one hand, your involvement might help limit "innocent" deaths. On the other, a more effective system might see more use, so more people overall might be killed (and it might lead to more "innocent" deaths than otherwise, even if they are a reduced percentage of the total). Additionally, there's no guarantee that other actors are not developing the same technology, and it could either be obtained by the government through them, or used against the government and its citizens by them, reducing overall safety.
Take, for example, RADAR. Should those that developed RADAR, during or just prior to WWII, and abstained because of its possible wartime use? Wikipedia says "In the 1934–1939 period, eight nations developed independently, and in great secrecy, systems of this type"[1], so those that were left out faced a real danger in the coming years if they didn't have something to compete. Yet, RADAR has been used to great effect in many weapon systems and by many countries since WWII in ways that that most would agree are horrible. Then again, it's made commercial air travel much safer than we could have hoped to achieve at this scale without RADAR.
It's a complex situation, and I think it deserves a complex discussion. Distilling it to "working with the government is bad because I don't like what the government is doing" doesn't really do it justice.
1: https://en.wikipedia.org/wiki/History_of_radar