Pakistan beat Bangladesh by 3 wickets in Asia Cup thriller to knock India out