The attempted burglary was reported at 5:55 p.m. at a home in the 800 block of Miramontes Street.
The suspect, a 15-year-old Moss Beach resident, allegedly broke windows in the home's basement and then walked around to the front of the house and began banging on the front window and door, sheriff's officials said.
An elderly woman living in the home opened the door and saw the teen pointing the pitchfork at her and waving it side to side, according to the sheriff's office.
The woman closed the door and called 911 and waited in her living room with her daughter while the teen continued banging on the door and window. Deputies arrived shortly afterward and took the boy into custody although he resisted arrest, sheriff's officials said.
The deputies found the broken basement window and a trail of blood. The teen had a deep cut to his finger, possibly from broken glass, according to the sheriff's office.
The teen, whose name is not being released because he is a juvenile, was booked on suspicion of residential burglary, assault with a deadly weapon, resisting an officer and making criminal threats.
Anyone who may have more information about the case is encouraged to call sheriff's Lt. Jeff Kearnan at (650) 573-2844 or call the sheriff's office tip line at (800) 547-2700.