The state fire marshal is a state-commissioned officer and functions in that capacity subject to rules of the commissioner.