Man sentenced to prison for death of child