NEW YORK (Reuters) - The FBI acted inappropriately when it announced the revival of its investigation into Hillary Clinton’s private email setup days before the Nov. 8 presidential election, Clinton’s lawyer said, citing search warrant documents made public on Tuesday.

FILE PHOTO - U.S. Democratic presidential nominee Hillary Clinton speaks about the FBI inquiry into her emails during a campaign rally in Daytona Beach, Florida, U.S. October 29, 2016. REUTERS/Brian Snyder/File Photo

The pointed criticism from Clinton attorney David Kendall followed the release in federal court in Manhattan of documents related to an October search warrant targeting emails involving the Democratic presidential nominee.

The warrant was issued two days after Federal Bureau of Investigation Director James Comey informed Congress in a letter on Oct. 28 of newly discovered emails that appeared “pertinent” to his agency’s probe.

Comey’s letter drew new attention to Clinton’s use of the server while she was secretary of state from 2009 to 2013 and roiled the campaign 11 days before the election, which Republican Donald Trump won.

Clinton has blamed Comey and his letter for her defeat.

In an affidavit unsealed on Tuesday, an FBI agent said there was “probable cause” to believe emails involving Clinton were among “thousands” found on a laptop in an unrelated probe that contained U.S. State Department correspondence.

But the documents gave no indication the FBI had any evidence at the time of Comey’s letter that any of the emails on found on a laptop involved classified communications with Clinton.

Kendall said the documents showed the “extraordinary impropriety” of Comey’s letter, which “produced devastating but predictable damage politically and which was both legally unauthorized and factually unnecessary.”

The FBI declined to comment.

The laptop belonged to former Democratic U.S. Representative Anthony Weiner, the estranged husband of Clinton aide Huma Abedin who was the subject of an investigation after a report about cellphone and online messages he sent a 15-year-old girl.

The search warrant materials’ release was sought by Randol Schoenberg, a Los Angeles-based lawyer, who contended that transparency was crucial given the potential influence the probe had on the election’s outcome.

In a statement, Schoenberg said he saw “nothing to suggest that there would be anything other than routine correspondence between Secretary Clinton and her longtime aide Huma Abedin.”

Brian Fallon, who served as the national press secretary for Clinton’s campaign, said on Twitter the search warrant “reveals Comey’s intrusion on the election was as utterly unjustified as we suspected at time.”

In July, Comey recommended no charges be brought over Clinton’s handing of classified information in the emails, although he said she and her colleagues were “extremely careless” in handling such information.

That determination followed what the search warrant materials called a “criminal investigation concerning the improper transmission and storage of classified info on unclassified email systems and servers.”

In his letter to Congress, Comey said emails potentially related to the investigation had been discovered in an “unrelated case.”

Federal investigators obtained the warrant to examine the emails on Oct. 30. Two days before the election, Comey disclosed the emails did nothing to change his earlier recommendation.