Nothing in this chapter shall be construed as applying to the manufacture, storage, sale, or use of signals necessary for the safe operation of railroads or other classes of public or private transportation of illuminating devices for photographs use, nor as applying to the military or naval forces of the United States, or of this state or use of blank cartridges for ceremonial, theatrical, or athletic events, nor as applying to the transportation, sale or use of fireworks solely for agricultural purposes, providing the purchaser shall first secure a written permit to purchase and use fireworks for agricultural purposes only from the State Fire Marshal, after approval of the county agricultural agent of the county in which said fireworks are to be used and said fireworks must at all times be kept in possession of the farmer to whom the permit is issued. Such permits and fireworks shall not be transferable. Items sold for agricultural purposes shall be limited to those items that are legal for retail and use within the State of Tennessee.