This almost certainly mating behaviour. The male is attempting to stimulate the female into spawning. I have bred tiger barbs in the past by conditioning the fish with live and frozen food until the females were plump with eggs. Then placed two males per female in a breeding tank with some coarse matting at the bottom and raised the temperature to 80F. I watched them spawning the next morning, with the eggs falling through the matting out of reach of the parents. I raised about 70 babies.
The behaviour in your fish is what I witnessed. If you want to breed them and raise fry, you will need to set up a separate breeding tank, otherwise, just leave them to it - it is doubtful any fry would survive in your tank with other fish.