Man accused of tearing down memorial for officer in court