Pope Francis has accepted the resignation of Cardinal John Njue, who has served as Archbishop of Nairobi since 2007.