Charlotte’s pistol falls into Eren’s hands during their struggle, and he uses it to shoot her.
Charlotte takes the pistol from a storage bin and carries it concealed in a hip pouch. During her struggle with Eren, it falls to the lift floor. Eren acquires it and uses it to shoot her.
The weapon Eren acquires and turns against Charlotte during their fight.