Armenian premier resigns amid protests