Kilotesla plasmoid formation by a trapped relativistic laser beam