U.S. and Panamanian negotiators were close to agreement Wednesday on a deal leading to Gen. Manuel Antonio Noriega's resignation as his nation's defense chief and departure in August, a Reagan administration official said. The official, who insisted on anonymity, said it was his understanding that an agreement was "consummated (Wednesday) morning" but added that the package could not be considered completed until Noriega confirms it with a public announcement.