Do not panic and do not pull out the card aggressively out of the ATM when it is stuck. You need to call the guard and explain to him your problem and he will help you to release your card.