Homeowner stops burglar from leaving during home invasion