BROCKTON – A 15-year-old boy and two men were charged in a gunpoint home invasion in Brockton Wednesday night.

Police said the three forced their way into an Auburn Street apartment Wednesday night around 8:30 p.m. and immediately began beating and pistol-whipping a man who lived there.

Anthony Green, 33, of 401 North Warren Ave., Brockton; Leonard Collins, 64, of 49 Battles St., Brockton; and a 15-year-old juvenile were charged with armed home invasion with a firearm. The three were issued summonses to appear in court.

The 45-year-old victim suffered injuries to his face and was taken to Signature Healthcare Brockton Hospital, police said.

“The victim said they pulled out a handgun and struck the victim in the head several times,” Lt. Robert Sergio said.

The victim’s girlfriend was in the apartment at the time of the attack and called police.

Sergio said the juvenile that was charged is the son of the victim’s girlfriend.

“It sounded like he (the victim) had an argument with his girlfriend’s son the day before and the kid came back yesterday with these other guys,” Sergio said.

He did not have further details as to why the attack occurred.

The three will be arraigned in Brockton District Court at a later date.