Egypt warns Hamas over possible Israeli offensive