Pakistan beat West Indies in third one-dayer