When you are caught for doing something illegal or against the rules, much like a submarine being detected by sonar is said to be 'pinged'
Friend: "Man, joe sure got pinged for cheating on that exam!"