A Russian court has sentenced an American to five years in prison on charges of illegally transporting weapons.