The 23-year-old cop, whose name was not released, was shot just after 8 p.m. inside a home on 95th Ave. and 120th St. in Richmond Hill, officials said.