Pakistan beat Sri Lanka in second T20 match