Pakistan defeat West Indies in warm-up match