The parents of a 5-year-old who accidentally shot and killed himself with an unsecured gun have been charged with violating Michigan's safe storage law, officials say.