Two-particle angular correlations in heavy ion collisions from a multiphase transport model