The maximum penalty allowed under state law was issued after an investigation found that the “tragic incident never would have happened” had firearm standards been followed.