So, Hamas can stick a rocket launcher at a site, put up a sign that says Shady Brook Apartments, move their family in, and it isn't a military target? Maybe a rocket launcher isn't enough, what if they put an ammunition dump inside said apartment? What if they used said apartment as their headquarters for attack? When does said apartment become a legitimate military target in your mind?
When there are no civilians in it, or there is a way to take out the missile launcher and its crew without killing every woman and child in it. In other words, troops on the ground can do it, a helicopter pilot cannot.