I read this novelette at least 40 years ago, in a collection, in English, which was most probably the original.
It describes the first contact between humans and the natives of a planet they just discovered. Human explorers first managed to get some basic knowledge of the language and customs by observing the natives from space with electronic devices. There were two related but distinct species, and one of them had totally enslaved the other one, though the number of the slaves was vastly superior. They had very limited technology, about hunter gatherer, I think, maybe a bit of agriculture.
Once they got those basic facts, humans made first contact. In the beginning, everything seemed to go well. The local chiefs of the dominant species agreed to exchange various local products for human low-tech implements which were very high-tech for the natives.
At some point, something went wrong. The leader of the human expedition felt the atmosphere had changed, but he did not understand what had happened. He also did not expect the vicious ambush the natives had prepared. They killed a few humans and wounded many more, but they did not fully understand the powers of the high-tech human weapons and despite their huge numbers (the slaves fighting alongside their owners) they were defeated and had to flee.
Then something went right again. Some local chiefs came to the humans with apologies and asked them to resume exchange of goods. Again the humans did not understand what had happened, so they said they had go home to tend the wounded and would come back.
When back to civilisation (I'm not sure it was on Earth, maybe just in any human inhabited planet, or space station) the leader met with some friends, maybe also with the top brass of the organisation. They did a "post-mortem" of the whole story to understand what went wrong and what went right again, so they could return without going through similar tragic episodes. IIRC, the explanation of both changes of attitude of the natives was found. The humans concluded that they could go back, now that they knew what to do and what to avoid at all price. Alas, I don't remember what it was.