Hit the flag, then arrows to move. Try to stay out of the AI's line of sight.
This is an AI with vision. It will patrol, and if it sees you, it will follow, and if it loses you, it will look around before going back to patrol. It is very much a spaz!