I believe he fired Comey because he refused to say publicly what he had told the president privately, "you are not under investigation"
Trump wants the made up Russian collusion cloud lift from his administration, Comey could have done that by just telling the truth to the media. He refused and got fired.