Dear Friend,
If your management has compelled you to resign, then they have no right to deduct the amount of your notice period. Discuss the issue of resignation with the senior person in detail and let them know that the resignation has been taken from the company end. Despite this,If they do not give you proper solutions then ask them a written reason for your resignation.