It's a simile. None of the three stylistic figures that have been left aside compare things.
Answer:
He was arrested because he won't reveal the witness that claims to have heard Thomas Putnam admitting that he was accusing his neighbors of witchcraft so that he could swoop in and buy their land.
Hope this helps!