Hamza 's group renounced violence in 1997 and two years later ended all attacks inside and outside of Egypt .