Inmate captured after hours long manhunt