Command-W is the standard keyboard shortcut to close the current open tab.
(This works in both desktop and mobile safari – so it’s a feature that people coming from there will miss!)