First-principles study of Exchange Interaction in Ising-type Multiferroic Ca$_3$CoMnO$_6$