A MATERIAL and a shader are two different things. Materials can contain effects and effects can contain shaders, but not vice versa.
The .fx format was defined by Microsoft for effect files. Microsoft does not know about Acknex Materials. So if you want to create an .fx file, you need to copy the effect out of the material (between but not including the "" quotes).