SALEM, Ohio (WYTV) — A Salem man was struck with a taser after a three-hour standoff with police Monday morning on Continental Drive.

Police were called to the home for a well-being check and confronted a man who refused to drop a weapon, later identified as a pellet gun, the Morning Journal reports.

The man’s place of employment called police at 3 a.m. to request the check on the man, who police said was threatening to harm himself. Police said the man opened the door with what appeared to be a handgun against his body and then refused to let officers inside the home.

The Alliance Special Response Team, Salem Fire Department and EMT Ambulance came to the scene. The man was detained in the attic after adjoining apartments were evacuated, according to the Morning Journal.

The man was taken to Salem Regional Medical Center for evaluation, and charges are reportedly pending.