Caitlyn Smith has been charged with injury to a child causing serious bodily injury.
According to the Harris County Sheriff's Office, Smith was playing with what she thought was an unloaded gun and was taking pictures with it when it fired. The boy was shot in the stomach.
The sheriff's office said the child is in serious condition but is expected to make a full recovery.
The incident remains under investigation.