SPRINGWATER, N.Y. — New York authorities say a man who was stockpiling homemade bombs is in custody following an explosion inside his apartment.

Investigators say they believe Joseph Martino was drying explosive material in his oven Thursday night when the material exploded, heavily damaging the oven.

Undersheriff James Szczesniak (SEHZ'-nee-ak) said Friday that 30 to 40 pipe bombs and other explosive devices and firearms were found inside the 34-year-old man's home in the rural hamlet of Springwater, south of Rochester. Several neighbors were evacuated.

It's unclear whether Martino has a lawyer. He's being held without bail on weapons possession and reckless endangerment charges.

Martino lives alone and is believed to be unemployed. Szczesniak says authorities have no indication that he had imminent plans to do harm, but the investigation is continuing.