. . . " State Militia, or to police or other law enforcement officers, with respect to firearm possession by a minor which occurs during or incidental to the performance of their official duties.(d)???A person who discharges any weapon or firearm while in violation of paragraph (a), unless discharged for lawful defense of himself or herself or another or for a lawful purpose, commits a felony of the seco" .