The Islanders surrendered a late goal Tuesday night against the Sharks, and it cost them a point in 3-2 loss in front of an announced crowd of 10,772 at Barclays Center. San Jose’s Joe Pavelski scored the game-winner with 2:11 left in the third on a deflection on a pass from Joe Thornton. The Isles hadn’t dropped a home game against a Western Conference team since moving to Brooklyn last season. They’re now 1-3 on the young season. After a first period in which the Islanders offense looked as if it was being guided by Ryan Fitzpatrick, they came to life in the second. Anthony Beauvillier tied the game at 1-1 with his first NHL goal, as he knocked the puck in over San Jose goalie Aaron Dell, making his NHL debut, midway through the second period. He was on the top line, playing alongside Josh Bailey and John Tavares, both of whom had assists on the tally. Anthony Beauvillier celebrates his first NHL goal.Photo: AP The 19-year-old Beauvillier impressed during training camp. He was the team’s first-round pick (28th overall) in 2015, and played Tuesday over fellow draft pick Mathew Barzal, who was scratched. Beauvillier’s goal erased the lead from the Sharks’ Melker Karlsson scoring 5:36 into the first period. After Anders Lee put the Islanders in front, Tomas Hertl tied it for San Jose at 18:03 of the second. Halak earlier made a nice save on Karlsson, who had a short-handed breakaway in the second. It seemed like a good night for the Islanders to get going, facing a San Jose team that was playing on a second straight night — and had surrendered seven goals to the Rangers at Madison Square Garden on Monday. Tuesday’s game was the first of five straight — and 10 of 11 — in Brooklyn, so it’s in the Islanders’ best interest to take advantage of the next three weeks. Casey Cizikas was back after leaving Sunday’s win with a leg injury.