Pakistan defeated Bangladesh and kept the semi-final hopes alive