This happened around 1:15 a.m. at the Green Meadows Apartments in the 17300 block of Kieth Harrow Boulevard.
Deputies say four men wearing hoodies forced their way into the apartment by breaking the glass door of the patio.
The men then allegedly tried to rob the victim, who was shot. He was taken to Memorial Hermann Hospital, where he died.
His wife and three young children, who were not injured, were inside their home at the time.
According to authorities, the children range in age from two to seven years old. Officials are in the process of interviewing the wife.
Detectives only had a vague description of the men, saying they were four black males.
Investigators told ABC13 they got away with cash and marijuana.
Follow Jeff Ehling on Facebook and Twitter.
Copyright © 2019 KTRK-TV. All Rights Reserved.