An apartment building near the downtown area in Carlsbad went up in flames early Wednesday, leaving up to a dozen residents displaced and a firefighter injured.

The fire at 935 Laguna Drive was reported shortly before 2 a.m., according to a North County fire dispatcher.

A firefighter suffered an injury, was treated at a hospital and released, fire officials said.

The cause of the early-morning blaze remains under investigation.

City News Service contributed to this article.

Chris Jennewein is founder and senior editor of Times of San Diego.