The US federal prosecutor who charged a former Indian intelligence officer with plotting to hire hitmen to kill a Khalistani leader is resigning.