The pet may be sneezing to expel the irritant, or they might be snorting because the air has been forcibly pulled in and causes a rush of oxygen.