Screen shot is command-shift-3 (all buttons simultaneously) . It should then show as "picture1" or similar on your desktop. You can then upload it here or to a photo sharing site.
Are you sure the "window" is not something like "terminal", which would show in the "dock" and you could quit by right clicking it in the dock. Active software in the dock usually has a "dot" beside it indicating it's active.