BS. The IDF soldiers themselves post videos of them going into buildings, pillaging what they can find (literally taking exercise equipment, jewelry, clothing, breaking open safes), then wiring it with explosives.
If the buildings were booby trapped they wouldn't be walking around casually inside. If there were enemy combatants they wouldn't be walking around inside. The buildings by definition have no military value and have been cleared, but they are blown up anyway. These are self documented war crimes.