Heavy gunfire erupted in South Sudan's capital Juba on Thursday evening after security forces moved to arrest the former head of the intelligence service.