The commandment is more accurately translated as “You shall not murder,” rather than “You shall not kill.” The Bible clearly distinguishes murder from things like warfare and judicial execution, which it permits in certain circumstances. So I don’t think the contradiction is quite as simple as “the Bible says never kill, then God commands killing.”
That said, the passages where entire populations are commanded to be destroyed are definitely much harder questions morally, and people interpret those in different ways.
@Banacubana_ Personally, I read texts from various religions and take whatever truth resonates with me. I think perhaps you’re curious to know more. So go ahead and explore. You don’t need to be religious or belong to a religion to read a book and see what you think about it.