Olympus, a distributor of endoscopes, will pay $646 million to resolve criminal and civil inquiries into claims of kickbacks and foreign bribery.