A Texas man thwarted his own burglary attempt Tuesday evening after bleeding to death inside the home he had broken into, police said.

The homeowner found 28-year-old Javier Tellez Jr. dead inside their El Paso home, KFOX-TV reported.

FLORIDA SUSPECT BREWED A POT OF COFFEE, SMOKED CIGARETTE DURING BURGLARY, POLICE SAY

The homeowner told responding officers he had found the would-be burglar after discovering a broken window and pools of blood, police said in a news release.

Investigators determined the man had slashed his arms on the broken window and died from loss of blood, according to the release.

Authorities are continuing to investigate.