Israelska soldater som avrättade två palestinier på nära håll efter att de redan hade kapitulerat har släppts efter kort förhör.