A New Jersey imam was stabbed during prayer, with the attacker subdued by congregants