Palestinian militants explode bomb at Hamas compound