A child is recovering in the hospital after she accidentally shot herself with an unsecured firearm inside a Detroit home, police said.