Libyan militiaman released in Egypt after diplomats freed