Well said.
No need for hitting or shouting violently.
Deal with it firmly as soon after the discovery as possible, so that he clearly links the misdemeanour with the repercussions. An armoury of punishments or techniques for encouraging positive behaviour are in your armoury eg ban and stick...