Early genocide
Google "amalek destruction in the Torah"
especially
1 Samuel 15:3
This should make it clear where the idea of genocide originated.
Or is the Torah antisemitic?
I don't know if this is the first example of genocide, but it is certainly an early example.