A sheriff's deputy was shot in the hand Monday afternoon in West Baraboo, officials said.

The Sauk County Sheriff's Office said deputies responded at 1:39 p.m. to check the welfare a man who was suicidal.

Deputies made contact with the man, who opened his door armed with a shotgun, according to a report.

The deputies retreated to what they believed was a safer position, the sheriff's office said. A short time later, the man opened the apartment door, closed it quickly and fired a shot through the door at one of the deputies, striking him in the hand.

Eventually the deputies were able to convince the man to exit his apartment and surrender.

The man, identified as 56-year-old William S. Abate, was arrested on a charge of attempted first-degree intentional homicide.  The sheriff's office said that Abate had several firearms in multiple rooms of his apartment, and may have been planning on engaging officers in a gun fight.

The injured deputy, a 23-year veteran with the sheriff's office, was treated at the hospital with a minor injury and released, according to the report.

A booking photo of Abate was not available from the Sauk County Jail Monday night, a deputy said.