from Satan? Utter absurd. The Torah books are very harmonious (although not completely harmonious) with each other.
It’s probably legal to bring up this type of subject in these forums, but it’s not of very general interest. We’re not all going to suddenly say “oh, really?”
C’mon, what is the issue? Is it that God orders the Israelites to kill off all the men, women, and children in some town, or something like that?
God is sovereign and those writings prove it. From the standpoint that those stories may be ficticious, they still teach what they portray, that God is sovereign and all powerful.
God teaches how unequivocally the Israelites should root out idolatry amongst themselves and their neighbors. God could have wiped out those people, but, to teach them a lesson, he had them do it.