Hasn't happened to me ,is that when they attach a reader device to the outside of the cash machine?
If so i always check if the casing is solid before using.
is the loss covered by the bank ?as its their property that was tampered with and they have a duty to ensure they aren't
Before asking them for the lost funds ,hassle the sh** out of them about a bit of compensation for your inconvenience ,ask are these machines secure ?does cctv watch them? if not , why not ?etc etc
In short -BLAME THEM! accept ZERO responsibility