Uganda military chief says country would join war if Israel faces defeat