Swedish foreign minister announces intention to resign