A man died at a Boston hospital nearly a week after he was pulled from a fire in New Hampshire, officials said.