Tarr wins 5th Essex District state representative seat