A foreign investor has acquired a 19-unit apartment complex in Maryland with the help of a $1.2 million loan from Kennedy Funding, the Englewood-based direct private lender.