Difficult to say with such a short view/description. Normally if they are trying to push another one along it is aggression, and the one being pushed often resists, but sometimes when they are doing the courtship ‘dance’ the female can get a bit grumpy and nudge the male. And the male sometimes seems to almost try to get underneath the female.
Very annoying of your light to go out! But, usually if it is courtship it goes on for a while and there is a lot of huffing from the female as the male circles her, but they may well have gone quiet when they heard you coming.