In order to be able to study in Sweden you need a residence permit. It is the Swedish Migration Agency that handles all applications related to study permits.
For more information on how to obtain a study permit and a residence permit - click here