CARY, N.C. — A 20-hour standoff with police ended Wednesday evening when a barricaded man killed himself in a busy apartment complex in Cary. Police said the man held his 11-year-old son hostage and barricaded himself in his home.

The man's son was shot twice but was released from the apartment Wednesday morning and is being treated for his wounds, Cary Police Chief Terry Sult said Wednesday afternoon. The boy had minor injuries to his neck and arm, Sult said.

There was a large police presence Wednesday that included FBI hostage negotiators and the Wake County Sheriff's Office SWAT team.

The man was barricaded inside an apartment at the Windsor at Tryon Village, near the busy shopping centers at Dillard Drive and Walnut Street. The affair began after 10 p.m. Tuesday, when police went to the apartment for a welfare check.

Residents say they did not get a “shelter in place” warning from the police until almost 12 hours after the situation began. Several roads in the complex off Walnut Street were blocked off.

“I’m concerned about school kids getting out, people out walking their dogs,” Sult said.

Cary police, along with officers from Raleigh and Wake County sheriff’s deputies, had a perimeter set up around the apartments.

The police chief said officers evacuated the surrounding apartments overnight. He said the FBI continued to negotiate with the man in the apartment.

He said the negotiations moved from a hostage situation to dealing with a mental health crisis Wednesday. Sult said the man was threatening suicide.

Police said they worked with the school system to make sure students who live in the apartment complex were dropped off somewhere else to meet their families.