Sri Lankas regering kritiseres for at have anholdt landets tidligere hærchef, oppositionsleder Sarath Fonseka, for "militære forseelser".