Photo-induced bond breaking in the ring: an ab initio molecular-dynamics simulation