Shares of Interoil rose 39 percent after the company agreed to be acquired by Oil Search.