Sensex ends 240 points lower on rising India-Pakistan tension