North Korean leader Kim Jong-un will make a rare trip abroad to attend a military parade in Beijing, North Korean and Chinese state media say.