When the object is ي (“me”), Arabic places a protective ن between the verb and ي:
ضَرَبَ + نِ + ي = ضَرَبَنِي
This nūn is called نُونُ الْوِقَايَةِ. Its kasrah suits the following yā. In ضَرَبَنَا (“he hit us”), نَا itself is the attached object; no extra protective nūn is added.