Two things:
1. The bible presents itself unapologetically as history
2. Nothing in the account suggests that Jehovah in any way recommended this sort of action (however he obviously allowed it)
3. The last pasage in Judges is a disclaimer..."In those days there was no king in Israel. What was right in his own eyes was what each one was accustomed to do."
In any case, the God represented in the bible is a demiurge evolving.