The Greens have claimed victory in a Kent by-election after seizing a seat previously held by Reform UK.