On some representations of twisted affine Lie algebras and combinatorial identities