The superintendent at a suburban New York housing complex has been sent to prison for entering a tenant’s apartment and having sex with a Labrador retriever.

The Westchester County district attorney says Kujtim Nicaj of Rye was sentenced Tuesday to 6½ years behind bars.

He pleaded guilty in October to burglary as a sexually motivated felony and to sexual misconduct.

Prosecutors said the incident was captured in February on cameras set up by the apartment owner, who suspected someone had been breaking in.

The district attorney said the 44-year-old Nicaj will have to register as a sex offender.

He had been fired as superintendent Rye Colony Cooperative Apartments.