Pakistan set 274 to win on final day