Fess up, explain why, accept the consequences, and don't do it again.

There is no other option other than keep it to yourself (and don't do it again.)