Investigators say the gunman planned the rooftop attack in detail, leaving writings about targeting ICE agents and searching online for ways to track them.