Former CIA director Leon E. Panetta clashed with the agency over the contents of his recently published memoir and allowed his publisher to begin editing and making copies of the book before he had received final approval from the CIA, according to former U.S. officials and others familiar with the project.