Two officers were shot while serving a search warrant Tuesday in Atlantic City, Mayor Marty Small Sr. said.