BMW AG’s profit margin came in toward the lower end of its guidance in the third quarter as tariffs and intense competition in China cut into earnings.