A former federal prosecutor who was fired because he had made critical blog posts about Donald Trump during his first term as president has sued the top U.S. law-enforcement officials in the nation and South Florida, saying in a lawsuit filed Friday they violated his free-speech rights when he was summarily terminated last year.

Will Rosenzweig, 40, was fired by then-U.S. Attorney General Pam Bondi last September after Trump supporters called for his firing in social-media posts after publicizing that the prosecutor had posted negative statements about the president when Rosenzweig was working as an attorney for a private law firm in Washington, D.C. — a few years before he was hired by the U.S. Attorney’s Office in Miami.