This is standard behavior in the toad side of the Anuran tree, which includes dart frogs. They agitate the middle digit of a rear foot in order to attract prey.