In the wee hours of July 4, FBI counterterrorism agents in the Boston area scrambled to thwart the last of a string of Islamic State terror plots they feared could be conducted during the patriotic holiday or soon after. Just weeks earlier, an agent and Boston officers had shot and killed an ISIS sympathizer on the…