South Africa, Chad condemn coup attempt in Gabon