Strikes were necessary to pre-empt further attacks , India s foreign secretary says