A New Hampshire teenager convicted of killing a mother and maiming her daughter with a machete has been sentenced to life in prison.