Estonian premier resigns amid loan scandal