The personal details of spies and soldiers were included in a data leak that also named 19,000 Afghans.