A man is in custody following an hours-long stand off with police this morning.

James Edward Duncan, 26, is accused of firing a gun in the area of Clauss Court and Stockton Boulevard.

A neighbor heard the shots and called police. Police found the man in an apartment but he refused to come out.

After talking with hostage negotiators he did come out of the apartment. Two small boys in the apartment were unharmed. Michele GiGante with the Sacramento Police Department says charges are pending. 

No cause for the incident in known.