Taiwan shares end lower, pulled down by tech sector : compar