Notwithstanding any other provisions of this article, open burning may be done without a permit as follows: (a) Open fires may be set in the performance of an official duty of any public safety officer, if necessary to prevent a fire hazard or to carry out his or her official duties. (b) Fire may be used for the cooking of food or for recreational purposes, such as camp fires, provided no smoke violation or other nuisance is created.