Pakistan beat West Indies by 74 runs in second ODI