Japan defence agreement carries risks