Shortly after the aircraft departed Chania, Greece bound for Hanover, Germany, the flight crew realized that the landing gear could not be retracted.