I lived in Texas for a while and we had fire ants on our property every so often. One time I was taking out the trash, and a lone ant got on my hand, but was just wandering around aimlessly. I watched it for probably a full two minutes, and then completely out of the blue it decided to bite me. Only years later did I learn that the behavior you mentioned is what I was seeing.