Rheology of a confined granular material