India beat Pakistan by 10 runs in a low-scoring thriller