Measurement-induced optical Kerr interaction