A Kenyan national has been sentenced to 18 months in federal prison for illegally possessing a firearm, according to the U.S.