Canberra and Djakarta agree on a security deal