At least 21 people, including 11 children, died after a damaged apartment building collapsed in Gaza.