Police: Dad jailed after 3-year-old finds gun, shoots self