He caught them at it after he acted stupidly.
He caught them at it.
Translation: He was angry that they caught him.