Usually, it's scored K/E2. The exception would be if the batter swings and misses at what turns out to be a wild pitch. In this case, the play would be scored K/E1.
But, is the team actually charged with an "out"? If the answer is yes, then that means (doesn't it?) that the teams ends up making more than three outs in the inning? Thanks.