NBC: Top federal prosecutor in New York announces resignation