The FBI arrested five suspects, with the bureau’s chief saying a ‘potential terror attack’ had been thwarted