The head of HSBC's compliance operations has resigned after the bank was forced to apologize before a U.S. senate committee on Tuesday for having inadequate money laundering controls.

David Bagley told the Senate committee he will step down as the bank faces allegations it was used by drug kingpins and terrorists to gain access to the U.S. financial system to the tune of billions of dollars over a period of several years.