A home invader killed himself after he was caught breaking in to a child's bedroom with a gun, cops say.

A Texas father wrestled a gun off the man who broke into his 13-year-old daughter's bedroom and then shot him multiple times.

The intruder then ran into the family's kitchen, took a knife, and stabbed himself to death.

What appeared to start as a home invasion in Texas turned into a bizarre string of events that has even shocked police.

A Texas father wrestled a gun off a man who broke into his 13-year-old daughter's bedroom and then shot him multiple times before the intruder ran into the kitchen and stabbed himself to death with a knife

It all began around 2.30am on Sunday, when the man broke a downstairs window in the Houston home.

There were four children inside the house, aged four to 13.

He made his way upstairs and into the room of the family's sleeping 13-year-old daughter.

The girl's father saw the man enter her room with a gun and immediately confronted him.

It all began around 2.30am on Sunday, when the man broke a downstairs window in the Houston home and made his way upstairs to the teen girl's bedroom

The girl's father saw the man enter her room with a gun and immediately confronted him and they wrestled for the gun before he shot the intruder

They then began to wrestle for the gun and the homeowner successfully obtained it, according to KTRK.

The father then shot the suspect multiple times.

Meanwhile, a neighbor had come over to help the family escape. When they walked by the kitchen, they saw the intruder repeatedly stabbing himself with a knife.

Authorities arrived on the scene and the suspect was rushed to the hospital, where he was pronounced dead.

Meanwhile, a neighbor had come over to help the family escape. When they walked by the kitchen, they saw the intruder repeatedly stabbing himself with a knife

It remains unclear if the man died from his gunshot wounds or stab wounds.

All four children who were in the house were unharmed. Detective Blake Roberts said they are doing 'pretty well', according to Law & Crime.

Authorities said the home invasion appears to be random.

The suspect's name has not yet been released. Police said he was a white man aged 30 to 35. His motive remains undetermined.