The legitimately elected government of Gaza is Hamas. Hamas did not occupy Gaza or somehow is separate from the Gazans. They are the government. The government also control the military. The Hamas military is firing rockets into Israel. How is that NOT a military action? If so, what's your point about bulldozing a house of a terrorist? The Gazans are not innocent! They elected the government. They teach their children to kill Jews. They pay families rewards when family members kill Israelis!
Imagine this: a crazy neighbor starts shooting from his house, killing your kids. He has his wife and kids inside and does not let them come out. You call the police. The Police say "If we go in with SWAT, UN will condemn us and every newspaper will call us occupiers". Meanwhile, you're burying your child. Since the Police does not come, your neighbor continues shooting into your house, killing your dog. You try to figure out a way to end this so you offer your neighbor all of your land and most of the house. You only need a closet with a small mattress to sleep on. Your neighbor laughs and continues to shoot at your house, killing your wife. You have no one left of your family. You've had enough and you set the guy's house on fire. The court calls you an occupier and a criminal and the Police come and kill your ass!