A rocket fired from Gaza struck the southern Israeli port city of Ashdod on Tuesday, just hours after Israel accepted an Egyptian truce, police said.