Pakistan beat West Indies in day-night Test