The U.S. has reopened its embassy and other offices in South Africa , three days after closing them because of a security threat .