Wanted man in custody after two-day manhunt ends with tracking dogs