A few companies has made it a policy that if you leave by your own by resigning then you need to pay the recruitment charges and also the air ticket
one of my friend had the same experience with Qatar Kentz company. they deducted the amount and also denied to give the NOC to him.