A judge dismissed child pornography charges against a California doctor whose computer was searched following a repair by Best Buy’s Geek Squad because the FBI agent made “several false or misleading statements or omissions... with reckless disregard for the truth” in a search warrant affidavit, The Washington Post reports.

The pornography case was triggered by the Geek Squad’s discovery of a photo of a naked girl, believed to be 9 years old. She was not involved in a sex act, and her genitals were not shown.

Technicians tipped off the FBI.

But U.S.District Judge Cormac J. Carney said the FBI misrepresented the case in obtaining a search warrant for the home and computers of oncologist Mark Rettenmaier. Agents found hundreds of pornographic photos on his iPhone.

Carney concluded the search was illegal because FBI agents received the warrant by inaccurately saying “the image was child pornography.” The judge said the photo was “one image of child erotica” and that it “is simply not sufficient to search Dr. Rettenmaier’s entire home, the place where the protective court of the Fourth Amendment is most powerful.”

Six years ago, FBI agents knocked on the door of three honor students at the University of California in Davis because the roommates’ AT&T wireless router was used to access child pornography.

“When it became pounding, I stumbled out to open the front door – to the complete and utter shock of having FBI agents on my front porch shoving a warrant in my face and suddenly appearing armed in my home,” Caitlin Fitzgerald wrote in a letter to the FBI two weeks ago, the Sacramento Bee reports. “Even thinking about it now, years later, my stomach starts to tighten.”

Turns out, the roommates’ 22-year-old neighbor was downloading child pornography by using “his great computer savvy” to hack into their password-protected wireless account, according to federal court records.

Today, the neighbor Alexander Nathan Norris is scheduled to be sentenced in federal court in Sacramento, where prosecutors are calling for a 17.5-year sentence on charges of possession and distribution of material involving the sexual exploitation of minors.

“This case is not a run-of-the mill child pornography case because the defendant hacked into and used his neighbors’ password-protected wireless internet to download and distribute child pornography, thereby roping innocent bystanders into his criminal activity,” Assistant U.S. Attorneys Matthew Morris and Shelley Weger wrote in their sentencing memorandum to the judge.

A Best Buy employee who worked at the company’s repair center served as a paid FBI informant who essentially performed warrantless searches on electronics at the maintenance facility in Kentucky, according to the attorney of a doctor facing child pornography charges.

Since 2009, “the FBI was dealing with a paid agent inside the Geek Squad who was used for the specific purpose of searching clients’ computers for child pornography and other contraband or evidence of crimes,” defense attorney James Riddet claimed in a court filing last month, the Los Angeles Times reports.

Riddet is defending Dr. Mark Albert Rettenmaier, who was indicted in November 2014 on two felony counts of child pornography.

Riddet has asked the judge to dismiss most of the evidence in the case because it was taken during illegal searches by a supervisor at the Geek Squad.