The army has launched an inquiry after personal details of spies and soldiers leaked in new breach.