An Israeli military operation has displaced 40,000 people from refugee camps, but restrictions on humanitarian access are complicating the response.