A Kenyan court on Thursday sentenced a British man to four years in prison on charges of helping to plan attacks in Kenya and possessing bomb-making materials.