New Delhi says it retaliated against ‘unprovoked’ shelling as security forces detain hundreds following last week’s deadly attack on tourists.