'Immediate and unconditional' ceasefire to come into effect from midnight, ending deadly border clashes.