Fighting near Kashmir mosque ends, six killed