ZURICH- Credit Suisse has reached an out-of-court settlement with former star banker Iqbal Khan over allegations of spying that led to the resignation of the Chief Executive Tidjane Thiam, a spokesperson for the Swiss bank said on Sunday.

"Everybody involved has agreed to settle and this matter is now closed," Simone Meier said, confirming a report in Swiss newspaper NZZ am Sonntag.

A spokesperson for Khan did not immediately respond to a request for comment. UBS UBSG.S , where Khan is now co-president of global wealth management, declined to comment.

The agreement, details of which have not been disclosed, ends a dispute that rocked the normally sedate world of Swiss banking when allegations of corporate espionage involving Credit Suisse emerged in September 2019.

The affair became public when Khan, after defecting to UBS, confronted a private detective who was following him and his wife through Zurich.

What Credit Suisse initially described as a rogue spying case run by then-Chief Operating Officer Pierre-Olivier Bouee widened as details emerged of other instances of surveillance.

As well as the departures of Bouee and Thiam, a private investigator who organized the surveillance committed suicide after the affair came to light.

The NZZ am Sonntag said the settlement would see the withdrawal of the criminal complaints Khan had filed against the bank and the private detectives.

"The investigations associated with the criminal charges will be discontinued," Erich Wenzinger, spokesman for the Chief Public Prosecutor's Office in the Canton of Zurich told the newspaper.

(Reporting by John Revill Editing by Mark Potter) ((John.Revill@thomsonreuters.com; +41 58306 7022; Reuters Messaging: john.revill.thomsonreuters.com@reuters.net))