If the target creature is an illegal target as Kimahri's last ability tries to resolve, it won't resolve and none of its effects will happen. You won't put a counter on Kimahri, and Kimahri won't become a copy of anything.