Caught in the act, and somewhat flurried he hastily shuts and locks his desk.
Someone caught him, and he then locked his desk.