A very similar thing just happened here Monday, a walk up ATM though, I read they believe the guy was hiding behind the building. The victim was shot in the face.
ATM shooter photos released: Photos release of attacker who shot man in face at SunTrust ATM in Orlando - Orlando Sentinel
I avoid ATM's like the plague. I prefer to get cash back from a transaction in a store if I need cash.