Installing the pkg tool on FreeBSD can be tricky as bootstrapping it requires a response making non-interactive  scripting difficult.  The tradition -y or --yes flags are not available to the pkg bootstrap process.  You need to bootstrap like this instead:
env ASSUME_ALWAYS_YES=YES pkg bootstrap