Pensacola Navy base shooting was ‘act of terrorism,’ attorney general says