Hmmm. “He swore that he did not” means she asked, and he answered.
“He swears that he did not” sounds like he’s been asked repeatedly and his story hasn’t changed.
So the correctness would depend on which meaning is aimed at.