Critical Kaluza-Klein black holes and black strings in D = 10