Pretty shitty to do this to anyone. The only scenario where firing someone for (legally) using a certain software should be allowed to happen is where it was communicated clearly in advance that using that software is not allowed in that particular job position.