Years of intelligence collection, infiltration of Iran with commandos and weapons, and tracking of targeted commanders and scientists made the wide-ranging attacks possible.