A characterization of KK-theory