Security deposit confiscation falsely landlord

I rented a flat in a society of Noida, the building was under construction and they hadn't put the electricity meter and the broker did not told us about the electricity charges, I was not in my flat for 3 months. Now I vacated the flat with all dues clear, I gave them ine month notice but had to leave the flat before the notice period due to an emergency. I asked the owner for returning my security deposit, in return he told us that it will not be returned and I have to pay 10000 for electricity bill, which did not came to me monthly and there was no meter also and they haven't told us about this earlier. They told us now that they have made an assumption for this electricity bill. I refuse to pay this bill and now he is threatening to lodge an F I R on me, and he is not returning my security deposit too. I'm ready to pay the electricity bill for the months in which I was in the flat but why are they charging electricity bill on me when I wasn't there in the flat and didn't used any electricity. What should I do to get my security deposit back and how to file a complaint against the broker who fooled us in this scenario.