The boy was caught just hours after police released surveillance video showing him strolling away from the home in Bay Ridge. The incident happened just after midnight Wednesday along 68th Street.
Authorities have not released his name because he is a juvenile.
The suspect allegedly rang the doorbell of the home, dropped the device and ran.
The bomb squad determined it was a hoax.