An East High School student brought a pellet gun to school Friday, police said.

Madison police said a 17-year-old boy and several other students got into a heated exchange at about 10 a.m. East High School's educational resource officer helped diffuse the disagreement.

The officer worked with the 17-year-old to calm down, according to the report. The student told the officer he was armed, so the officer ordered him to raise his hands and removed the gun from his waistband.

Police said it turned out to be a look-a-like handgun that fires pellets. The student also had a mounted laser light for the gun.

The teen was arrested on suspicion of possession of weapon on school premises and disorderly conduct.