A man accused of killing an iguana wanted the charge dismiss