I guess it would be something like, on timer, pick ball instance at top of table, move to ball, throw in random direction, set timer to random time..
But it all depends on how intelligent you want your ai.
you could choose to pick nearest instead of random, increase the moving speed of the enemy, shorten the timer, etcetera..