Director of Slovenian Press Agency resigns after year-long fight with authorities