Who?
I am all in favor of freedom of speech. These agents weren’t charged with any crime.
They have not been denied due process because they can appeal their termination and possibly get their jobs back.
I don’t know about the FBI rules, but I know that most police departments have a conduct unbecoming policy. If you say or do something publicly which brings disrepute to the agency, you can face disciplinary action up to termination.