Over 500 detained across Kashmir in ‘message to militants’ as police step up hunt for gunmen who killed retired soldier