The incident happened on West 183rd Street in the University Heights section at around 11:40 Wednesday morning.
Police say the suspect, 39-year-old Samuel Foster, was barricaded inside an apartment and began shooting through the front door.
At least five shots were fired.
It's unclear if the person was aiming for police.
No one was hurt.
Foster was taken to a Bellevue Hospital for a psychiatric evaluation.
Police say he has since been arrested and charged with attempted murder and reckless endangerment.
ALSO READ: New Jersey residents want answers after not receiving unemployment benefits for weeks
* More Bronx news
* Send us a news tip
* Download the abc7NY app for breaking news alerts
*Follow us on YouTube