Hostage taker sentenced to 4 years in prison for confinement