Learning-based Intelligent Attack against Formation Control with Obstacle-avoidance