Relatives of a nine-year-old boy who was killed by an accidental gunshot in Australia have been charged over his death.