An Israeli missile struck a building inside the compound housing Gaza's largest hospital on Monday, medics and an AFP correspondent said.