Court docs: Man left loaded gun accessible to 3-year-old, leading to child's death