It was a mammogram.
Usually female technicians are there for it, but if not available at a centre then a woman chaperone is always present.
Your experience is quite unusual and the place needs to know of the highly unprofessional behaviour of this person.
Inform the doctor in charge of your case or the radiologist doctor at the imaging centre.
It’s not unusual for male technicians in India to be creepy because of their poor training.