Landlord not refunding security deposit

I paid a security deposit of ₹50000 while renting a house in pune the agreement was made for 12 months but i wish to vacate the flat before the expiry of the rent agreement i have given the one month notice to my landlord on 28th jan and asked him to refund my remaining security deposit. When i move in to the house i came to know that the meter of the electricity was stopped and no reading was being made ₹0 bill was being generated but there was supply of electricity in the house when i called the supplier board of the electricity i came to know That the connection was disconnected 6 months back and that i need to reapply for the electricity connection I informed the same to owner that the electricity was coming in the house but meter is stopped and electricity board is saying you need to apply for a fresh connection he said that he will sort it out I reminded him atleast 2-3 times after that but he kept on saying that he is working on it now that its Time to vacate the house he saying that he will deduct the electricity charges from my security deposit but there is no bill generated for the electricity as there was no reading being made by the meter so the bill is zero for all the months I stayed What should I do