A man has been arrested in connection to the attempted break-in at a Dallas apartment where a man inside shot at two suspects through his front door, police said.

Ethan Rodriguez was in his apartment around 6 p.m. Saturday when someone he didn't recognize knocked on his door and claimed to be a maintenance worker.

Rodriguez, who answered his digital doorbell and home security camera on his phone, said the suspect, identified as Aaron Contreras, 30, said he was a maintenance worker who was there to check the filter to the air conditioner, according to an affidavit obtained by FOX Dallas.

TEXAS TATTOO SHOP BOSS FIRES EMPLOYEE, KILLS HIM IN ARGUMENT OVER FINAL PAYCHECK, POLICE SAY

Dallas apartment shooting

Blink home security camera footage shows a robbery suspect who posed as a maintenance worker ducking while being shot at multiple times by a tenant through an apartment door in Dallas. (Rodriguez Family)

Rodriguez is heard on the video telling Contreras he wasn't home. Contreras, who was armed with a handgun, came back a few minutes later with a masked man, police said. Video footage taken from the doorbell camera shows both men taking turns trying to kick in the door.

At some point, Rodriguez grabbed his handgun and fired several shots through his front door. Contreras fired two rounds in response and fled with the other suspect.

Dallas police officers responded to the scene and found 13 bullet casings — 13 bullet holes exiting the front door and two more entering through the door.

Texas burglary suspect

Aaron Contreras, 30, was arrested after trying to break into a Dallas apartment unit, police said. (Dallas Police Department)

CLICK HERE TO GET THE FOX NEWS APP

Contreras was arrested Saturday by Dallas County sheriff's deputies on warrants for aggravated assault, deadly conduct and attempted burglary of a habitation, the Dallas Police Department told Fox News Digital.

He is being held in the Dallas County jail on a $150,000 bond, according to jail records.