Top federal prosecutor to resign