Is this mental or sexual haraament???

Dear sir/madam Hi I am souvik, I resied in a housing complex in kolkata. Like others I also use club house facility in our housing socitey. One day I saw a girl in gym in our club house, I introduce my self to her and she also introduce her self, that time I thinked she might me college student, so day by day when we suddenly meet , I give a smile and said hiii, she also did this to me.after some days I collect her phone no.from club register book And one day aproxx 9.00 p.m I text her through whatsapp that """"hi, r u Remember me?? We meet in gym, I want to friendship with you or nothing else.""""" Than she repplied """I am not intested"""" and rudley said """my husband will answer for that""""" Than I sais ok ok, Sorryyy, but I have no bad intention , I ask u only for friendship. If u get hurt than i am Sorryyy, I apologi for that. Than see repplied dont disturbe pepole like this and dont texting me. Than I again say ok Sorryyy mam. Thats it, after than I never text her or disturbed her. But after a day she lodged a complain aganist me to our socitey secretery. Than secretery threted me that why you mentaly or sexualy harssed to a married wife at night?? Do u know I can call the police than I said I dont know that she is married or not and I only said about friendship or nothing else, when she said not intested than I Sorryyy and apology to her. Than our socitey secretery that ok this is your fast and last warning and u have to give written apologi letter to me and as a punishment u cant use club house for a week. Than I gave apologi letter to socitey secretery and also said Sorryyy to him and also said Sorryyy to her But seeiously I did not know that she is married. So my question is , is that mentaly or sexualy haraament whatever I did?? If no than what I shoud that time and if yes than I already given apologi letter so can she filed any complain aganist me ?? And is socitey secretery did the right thing to me?? I am totaly mental fastreted Pls help me by give your advice........