This is the game taking its internal screenshot when the Steam screenshot is requested. Currently the in-game screenshots are not asynchronous and this causes the lag. You can change the g_steam_screenshots config variable to 1 to disable this part of Steam integration. When it is disabled, using the in-game screenshot key or photo mode will still generate the Steam screenshot however using the Steam screenshot key will not generate the in-game one anymore.