(CNN) -- The man who held a 5-year-old boy hostage for nearly a week is dead and the boy is safe, a law enforcement source told CNN.