ROCKLAND, Maine — A 36-year-old Rockland man who is on the sex offender registry is accused of attacking another man with a club after being called names.

Samuel Sanchez was arrested Sunday and charged with Class A elevated aggravated assault, according to Rockland Deputy Police Chief Wally Tower.

Police were called to the Brunswick Rooms apartments on Main Street shortly after 11 a.m. Sunday, the deputy chief said. The victim was another resident of the apartments who was taken by Rockland ambulance to Pen Bay Medical Center in Rockport.

The victim suffered a concussion and cuts and bruises to his head, according to an affidavit filed by Rockland police in Rockland District Court. Tower said he has heard that the victim since has been released from the hospital.

On Monday, Judge Daniel Billings set bail for Sanchez at $20,000 cash. The bail commissioner originally had set bail at $50,000 cash and Sanchez’s attorney, Jeremy Pratt, had sought his client’s release on $1,000 cash bail.

Sanchez remained at the Knox County Jail late Monday afternoon.

According to the affidavit, Sanchez said he struck the victim repeatedly after a verbal altercation. Sanchez told police that the victim and the victim’s girlfriend had been loud the night before and he had confronted the man about it. Sanchez also told the officer that the victim had been calling Sanchez derogatory names, according to the affidavit. One of the names was a derogatory term for Hispanics. Sanchez is Hispanic.

Sanchez also claimed that the victim had pushed his girlfriend the previous night, a claim denied by the alleged victim of the club assault.

Sanchez said the victim also had been calling him an offensive name for being a sex offender, the affidavit states.

Sanchez also was charged with violating a condition of release on a previous charge. He had been free after a criminal trespass conviction that is being appealed to the Maine Supreme Judicial Court, defense attorney Pratt said. The attorney said he might argue that his client was defending himself.

According to the sex offender registry maintained by the Maine Department of Public Safety, Sanchez was convicted in 2009 of lewd or lascivious battery on a victim 12 to 15 years old in Florida and is a lifetime registrant of the sex offender list.