A New Brunswick man has been ordered to undergo a 30-day psychiatric evaluation after he allegedly barricaded himself in his Scoudouc home and started an armed standoff with police.

Denis Cormier, 26, of Scoudouc has been charged with pointing a firearm, possession of a weapon for a dangerous purpose, assault with a weapon and uttering threats in connection with the incident.

RCMP responded to reports that a man armed with a gun had entered a bar on Elmwood Drive on Sunday night.

"Last night at about 9:30 we received a call that a male entered a local bar, allegedly brandishing a firearm," Cpl. Peter MacLean confirmed to CTV News on Monday.

Police tracked the man to his home, where he had barricaded himself inside.

Several police vehicles blockaded the road in front of his home Monday morning and some area residents were asked to leave their homes.

"I was sleeping and the doorbell rang," said neighbour Ganice Coates. "It was a policewoman at the door and she told us to leave the house. She said there was a dangerous situation."

Another area resident said he was told to stay inside and lock the doors.

"The policeman told us it was a dangerous situation and we had to stay inside, not to go out," said Louis Melanson.

After 10 hours of negotiations, the suspect surrendered to police.

"He was located at a residence in Scoudouc and after a short standoff he was taken into custody," said MacLean.

Cormier is due back in court on May 8 and police say he could face more charges relating to the armed standoff.