Nobody is perfect. Being the number one in class is not an exemption to commit mistakes both professionally and personally. But at work, where actions are being observed and calculated, how does one make up for a mistake that affect the work process?
Photo from http://www.thelawofattraction.com/made-a-mistake-heres-what-you-can-do/
It is normal to feel embarrassed and worried at the same time, but that should not hinder in finding a way to solve and improve the situation. Take a deep breath and make an effort to pick up the pieces. Quick thinking may be required but this also needs a proper way of implementation.
The most important part of it all is learning from that mistake. Sharing the information among other colleagues is also an advantage In order to correct and prevent the same situation from recurring. Earning back trust as well as reputation is also something to consider but never allow blame culture as this will definitely worsen the scenario.