At first, try to convince your HR people of the urgency and that your need to return home. If they still refuse to consider, then send them your resignation by email. Possibly they may still not consider your resignation. You may then approach Human Rights Committee and if the matter does not get resolved there, approach the Labour Office which should help sort out the matter.

Why will there be a fine if you resign? This sounds somewhat unusual to me.