(CNN) A New Zealand man may face prison after admitting abusing worshipers outside the Al Noor Mosque in Christchurch, where 42 people were killed in a terrorist attack last month.

Daniel Nicholas Tuapawa, 33, is alleged to have hurled Islamophobic abuse last Wednesday evening. He was wearing a black T-shirt emblazoned with the word "Trump" at the time, police said.

Tuapawa appeared Friday in Christchurch District Court and admitted disorderly behavior. The charge carries a possible prison term of three months, or a fine of up to NZ$2,000 ($1,350).

Daniel Nicholas Tuapawa. (New Zealand Police)

"The community is understandably shaken by this behavior," said Canterbury District Commander Superintendent John Price, adding that two armed officers had been outside the mosque at the time.

Australian Brenton Tarrant, 28, a suspected white supremacist, has been charged with 50 counts of murder after the attack on the Al Noor mosque and another mosque on March 15.

Read More