Chaotic dynamics in superconducting nanocircuits