ABOARD A U.S. MILITARY AIRCRAFT -- In a new twist to the Gen. David Petraeus sex scandal, the Pentagon said Tuesday that the top American commander in Afghanistan, Gen. John Allen, is under investigation for alleged "inappropriate communications" with a woman who is said to have received threatening emails from Paula Broadwell, the woman with whom Petraeus had an extramarital affair.

Defense Secretary Leon Panetta said in a written statement issued to reporters aboard his aircraft, en route from Honolulu to Perth, Australia, that the FBI referred the matter to the Pentagon on Sunday.

Panetta said that he ordered a Pentagon investigation of Allen on Monday.

A senior defense official traveling with Panetta said Allen's communications were with Jill Kelley, who has been described as an unpaid social liaison at MacDill Air Force Base, Fla., which is headquarters to the U.S. Central Command. She is not a U.S. government employee.

Kelley is said to have received threatening emails from Broadwell, who is Petraeus' biographer and who had an extramarital affair with Petraeus that reportedly began after he became CIA director in September 2011.

Petraeus resigned as CIA director on Friday.

Allen, a four-star Marine general, succeeded Petraeus as the top American commander in Afghanistan in July 2011.

The senior official, who discussed the matter only on condition of anonymity because it is under investigation, said Panetta believed it was prudent to launch a Pentagon investigation, although the official would not explain the nature of Allen's problematic communications.

The official said 20,000 to 30,000 pages of emails and other documents from Allen's communications with Kelley between 2010 and 2012 are under review. He would not say whether they involved sexual matters or whether they are thought to include unauthorized disclosures of classified information. He said he did not know whether Petraeus is mentioned in the emails.

"Gen. Allen disputes that he has engaged in any wrongdoing in this matter," the official said. He said Allen currently is in Washington.

Panetta said that while the matter is being investigated by the Defense Department Inspector General, Allen will remain in his post as commander of the International Security Assistance Force, based in Kabul. He praised Allen as having been instrumental in making progress in the war.

The FBI's decision to refer the Allen matter to the Pentagon rather than keep it itself, combined with Panetta's decision to allow Allen to continue as Afghanistan commander without a suspension, suggested strongly that officials viewed whatever happened as a possible infraction of military rules rather than a violation of federal criminal law.

Allen was Deputy Commander of Central Command, based in Tampa, prior to taking over in Afghanistan. He also is a veteran of the Iraq war.

In the meantime, Panetta said, Allen's nomination to be the next commander of U.S. European Command and the commander of NATO forces in Europe has been put on hold "until the relevant facts are determined." He had been expected to take that new post in early 2013, if confirmed by the Senate, as had been widely expected.

Panetta said President Barack Obama was consulted and agreed that Allen's nomination should be put on hold. Allen was to testify at his confirmation hearing before the Senate Armed Services Committee on Thursday. Panetta said he asked committee leaders to delay that hearing.

Panetta also said he wants the Senate Armed Services Committee to act promptly on Obama's nomination of Gen. Joseph Dunford to succeed Allen as commander in Afghanistan. That nomination was made several weeks ago. Dunford's hearing is also scheduled for Thursday.

Related on HuffPost:

Loading Slideshow...
  • Super Bowl XLIII Football

  • CIA-Director David Petraeus

  • Gen. Petraeus Testifies At Senate Confirmation Hearing

    WASHINGTON - JUNE 29: U.S. Gen. David Petraeus, the commander of U.S. forces in the Middle East, speaks during his confirmation hearing before the Senate Armed Services Committee as his wife Holly Petraeus listens on Capitol Hill June 29, 2010 in Washington, DC. Petraeus has been appointed by U.S. President Barack Obama to replace U.S. Gen. Stanley McCrystal as commander of the United States Forces Afghanistan. (Photo by Brendan Smialowski/Getty Images)

  • Defense Secretary Panetta Holds Briefing At Pentagon

    ARLINGTON, VA - OCTOBER 18: Holly Petraeus (R), assistant director for the Office of Servicemember Affairs at the Consumer Financial Protection Bureau, speaks as Acting Deputy Assistant Secretary of Defense for Military Community and Family Policy Chuck Milam looks on during a news briefing October 18, 2012 at the Pentagon in Arlington, Virginia. The Pentagon held a briefing on efforts to enhance the financial health of the force. (Photo by Alex Wong/Getty Images)

  • Petraeus Retirement

  • Petraeus Intelligence

  • Fort Cambell General Returns

  • CIA Director David Petraeus Rings The Opening Bell At The New York Stock Exchange

    NEW YORK, NY - SEPTEMBER 18: Central Intelligence Agency Director David Petraeus walks the floor of the New York Stock Exchange to ring the Opening Bell as the CIA Commemorates it's 65th Anniversary on September 18, 2012 in New York City. Stocks fell in early trading as investors continued to be concerned about Europe and the global economy. (Photo by Spencer Platt/Getty Images)

  • Biden Petraeus CIA

  • CIA-Direktor David Petraeus zurueckgetreten

  • CIA Director David Petraeus, testifies b

    CIA Director David Petraeus, testifies before the US Senate Intelligence Committee during a full committee hearing on 'World Wide Threats.' on January 31, 2012 on Capitol Hill in Washington, DC. Witnesses include: Director of National Intelligence, James Clapper, FBI Director Robert Mueller(L); Defense Intelligence Agency Director Lt. Gen. Ronald Burgess; National Counter terrorism Center Director Matthew Olsen; Assistant Secretary of State for Intelligence and Research Philip Goldberg; and Homeland Security Undersecretary for Intelligence and Analysis Caryn Wagner. AFP PHOTO/Karen BLEIER (Photo credit should read KAREN BLEIER/AFP/Getty Images)

  • Military Family Spending

  • Defense Secretary Panetta Holds Briefing At Pentagon

    ARLINGTON, VA - OCTOBER 18: Acting Deputy Assistant Secretary of Defense for Military Community and Family Policy Chuck Milam (R) speaks as Holly Petraeus, assistant director for the Office of Servicemember Affairs at the Consumer Financial Protection Bureau, looks on during a news briefing October 18, 2012 at the Pentagon in Arlington, Virginia. The Pentagon held a briefing on efforts to enhance the financial health of the force. (Photo by Alex Wong/Getty Images)

  • Biden Petraeus CIA

  • House Holds Hearing On Protecting Service Members In Consumer Financial Marketplace

    WASHINGTON, DC - NOVEMBER 03: Holly Petraeus, assistant director for service member affairs at the Consumer Financial Protection Bureau, participates in a Senate Banking, Housing and Urban Affairs Committee hearing on Capitol Hill, on November 3, 2011 in Washington, DC. The committee heard testimony from Petraeus on protecting veterans and active service members and their families in the consumer financial marketplace. (Photo by Mark Wilson/Getty Images)

  • House Holds Hearing On Protecting Service Members In Consumer Financial Marketplace

    WASHINGTON, DC - NOVEMBER 03: (L-R) Sen. Jack Reed (D-RI) introduces himself to Holly Petraeus, assistant director for service member affairs at the Consumer Financial Protection Bureau, during a Senate Banking, Housing and Urban Affairs Committee hearing on Capitol Hill, on November 3, 2011 in Washington, DC. The committee heard testimony from Petraeus on protecting veterans and active service members and their families in the consumer financial marketplace. (Photo by Mark Wilson/Getty Images)

  • Petraeus Retirement

  • David Petraeus Sworn In As CIA Director

    WASHINGTON, DC - SEPTEMBER 06: Vice President Joseph Biden (R) swears in David Petraeus (C) to be Director of the Central Intelligence Agency, while his wife Holly Petraeus holds a Bible, in the Roosevelt Room at the White House, on September 6, 2011 in Washington, DC. General Petraeus retired from the U.S. Army last week, and has now become the 20th director of the CIA. (Photo by Mark Wilson/Getty Images)