A 12-year-old Massachusetts girl foiled a suspect who tried to break into her home, authorities say.

The young girl used her cellphone to record the suspect outside of her home, then hid in a closet and called 911 as the suspect tried to break into her house. He also tried to break into a neighbor’s house, police say.

“My mom is coming home from work, and she’s almost here, and I don’t know what to do,” the girl, who was home alone, frantically told the 911 dispatcher.

Authorities quickly arrived and nabbed the suspect, identified as Clinton Joyce.

School Shooting Foiled When Bus Driver Uses Car to Run Down Armed Man

Gun-Toting Good Samaritan Thwarts Carjacking

Attempted Abduction Thwarted: Boy Pulls Older Sister from White Van