Observation of two-dimensional superconductivity in an ultrathin iron–arsenic superconductor