The Israeli government said it had detained activists who were trying to take humanitarian aid to the blockaded enclave.