Certain types of hairspray contains an old fashioned type of lacquer. It is a nitrocellulose based material. For those without basic chemistry nitrocellulose is also known as “Gunpowder”. TSA blew it again.....
More likely is that it contained, like all hair sprays, propane as the propellant.