To capture a screenshot of the scene displayed in the Gazebo 3D render window, find and click on the camera icon on the toolbar above the render window.
Screenshot save location
The captured image will be saved to ~/.gazebo/pictures with a timestamped filename.