Gunfire erupted in Central Islip late Friday night, and a man was grazed in the head by a bullet, Suffolk police said.

Police and K-9 units were looking for two men, each armed with a gun, after they fired about six shots at two people just before 11 p.m. on Hackmatac Street, near Lowell Avenue, police said.

The shooting location is a known drug-dealing spot, police said, and the incident started when the two men in their 20s approached a woman who stepped outside a house on Hackmatac, said Third Precinct Lt. Eric Paton.

They argued and her boyfriend came out of the house and also argued with the two men, police said.

The gunmen started shooting, and the woman ran into the house while her boyfriend ran across the street, police said.

“The victim was running away at that point, and got grazed on the side of the head,” Paton said.

advertisement | advertise on newsday

The suspects ran east toward Prospect Avenue, police said.

The man was taken to Southside Hospital in Bay Shore to be treated for injuries that were not life threatening, authorities said. The woman was not injured, police said.

Photos of the scene show police tape cordoning off Hackmatac, between Lowell and Prospect avenues.

Third Precinct detectives are looking into whether the shooting was drug related and whether it was an attempted robbery.

Police ask anyone with information to call Crime Stoppers at 1-800-220-TIPS.