How does the use of recovered photographs from encounter sites help in counter-terrorism efforts?

Photos were used to identify terrorists after an encounter in Pahalgam. I want to understand the role of such evidence in investigations and what challenges may arise in using it for security operations.