South Korean prime minister resigns over ferry disaster response