A suspect has been arrested and a handgun seized after police officers were shot at in a troubled North York neighbourhood.

Officers were called to an address on Driftwood Avenue, in the city's Jane Street and Finch Avenue area, just after midnight Sunday after a shot was fired into a townhouse.

Police say it looks like the shot was fired from a highrise building on Driftwood.

When investigators arrived at the scene, several more shots were fired at the officer who had gathered outside the townhouse.

No one was injured in the shooting but police say they arrested a 19-year-old male suspect at the scene. He is facing several charges including attempted murder.