South Africa has the right to conduct such exercises with its “friends”, the foreign minister says.