Basically, the long description is:
A attacks B for being X or acting in X manners. But, while A might not be aware of this, from the outsiders' point of view, A also is X or acts in X manners as well.
So, how would you, in a few words, generalize/describe people like 'A'?
The first English word that came to my mind was 'hypocrite' but after checking with Oxford Advanced Learner's Dictionary, I'm not so sure if it is the right one for the described situation anymore...