A company that designs and manufactures autonomous underwater vehicles hauled in a $1.3 million loan from MassDevelopment, a state economic development agency.