The United States has revoked the visa of ICC Prosecutor Fatu Bensuda.

The prosecutor's office confirmed the report on Friday.

The United States wants to prevent the court from opening an investigation into crimes allegedly committed by US soldiers in Afghanistan.

The Prosecutor can still travel to New York when her report is due to be submitted to the UN Security Council, her spokeswoman said, adding that the work of the Prosecutor will continue despite the visa issue.

Stephan Dugaric, spokesman for UN Secretary-General Antonio Guterres, said that issuing visas to people to visit United Nations buildings was the responsibility of the host country. In the case of Bensouda, which follows the UN Security Council, this is the responsibility of the United States.

"We expect the United States to meet the agreement that allows the staff of the International Criminal Court to do their work here at the United Nations," Dugaric said.

Bensuda sought judicial approval to open an official inquiry, saying there was enough evidence of war crimes, and that US soldiers and CIA agents tortured prisoners or brutally treated them in 2003 and 2004.

US Secretary of State Mike Pompeo has already threatened to revoke entry visas for ICC staff.