South Africa scrambles to resolve diplomatic standoff with US