CHARLOTTE, N.C.  — Former CIA Director David Petraeus has agreed to plead guilty to mishandling classified materials, the Justice Department said Tuesday.

A Justice Department statement says a plea agreement has been filed in U.S. District Court in Charlotte, North Carolina.

The agency says the former top Army general was charged with one count of unauthorized removal and retention of classified material. The statement says Petraeus had signed an agreement pleading guilty to the single criminal count.

Petraeus’ lawyers David Kendall and Robert Barnett in Washington declined to comment.

The case was filed in Charlotte, the hometown of Paula Broadwell, the general’s biographer and former mistress.

Federal investigators had been looking into whether Petraeus improperly shared classified materials with Broadwell, with whom he admitted having an affair when he resigned from his position in November 2012. A law enforcement official had previously said agents found a substantial number of classified documents on Broadwell’s computer and at her home.

Both have publicly apologized for the relationship. They have said their romantic relationship began only after he retired from the military and started at the CIA.

The scandal marked an abrupt fall for Petraeus, a man who led U.S. troops in Afghanistan and Iraq and was thought to be a potential candidate for president.