A senior executive at Bank of America in New York departed last week after an internal investigation into a young female banker’s accusation of inappropriate sexual conduct, according to people at the bank who were briefed on the investigation.

The executive, Omeed Malik, 38, was a powerful figure in the hedge fund world. He was a managing director and helped run the prime brokerage business that raises money for hedge funds.

Among his roles, Mr. Malik was an adviser to Jon S. Corzine, the former New Jersey governor and United States senator, as Mr. Corzine started a hedge fund, and he was a speaker at a high-profile hedge fund conference organized by Anthony Scaramucci, who briefly was White House communications director last year. Mr. Malik, a former lawyer at Weil Gotshal & Manges, a prominent New York firm, also was a member of the Council on Foreign Relations.

While a wave of sexual harassment allegations has roiled Hollywood, Silicon Valley, the media world and Washington, until now Wall Street, an industry long dominated by men, had remained relatively insulated from the #MeToo movement.