Police say the 3-year-old grabbed the gun that was in a holster attached to the frame of a bed.
The gun belongs to his mother's boyfriend. The boyfriend was at work at the time, and the mother was asleep.
No word yet if any charges will be filed.
Two young children have accidentally shot themselves with guns found in their homes in the Houston area just this week.
TIMELINE: Children accidentally shooting themselves with guns in their homes