FORT LUPTON, Colo. (CBS4) – An arrest affidavit details the shooting between a 19-year-old man and Fort Lupton police on Monday night. Matthew Cotter admitted to detectives to firing his weapon at least three times toward a police officer.

Officer Chris Pelton was wounded in the shootout and remains in critical condition. The officer was listed as stable on Wednesday afternoon.

READ MORE: Colorado Weather: The Horrible Haze Expected To Get Worse

The shooting happened Monday night at a home in Fort Lupton. The affidavit states Cotter arrived at his ex-girlfriend’s home where she lives with her parents.

The girl’s mother first called police at around 8:45 p.m. saying the suspect threatened to harm her daughter and then kill himself. Officers searched the area for Cotter and his car.

Nearly two hours later, the girl’s father called 911 saying the suspect was in the front driveway. The girl also called police saying Cotter was armed and at the front door.

Fort Lupton officer involved shooting

(credit: CBS)

Minutes later, officers asked the father to come outside when they couldn’t find Cotter. That’s when shots were fired. Pelton was hit in the face and then taken to a hospital in Denver. Investigators say the officer suffered serious injuries including a shattered jaw.

He has since undergone two surgeries and remains in the hospital.

READ MORE: Meeting Gets Heated In Douglas County, Some Parents Say Recommendation For Masking In Schools Is Too Much

Chris Pelton (credit: Fort Lupton)

Cotter was also hit and taken to a hospital in Greeley.

Detectives say the girl broke up with Cotter in August. Since then, the suspect had tried to reconcile with her, and at one time was waiting for her outside her workplace in the parking lot. They say Cotter begged her to speak with him, and gave her a bullet saying he would use it to shoot himself.

The day after the shooting, Cotter admitted to detectives he had suicidal thoughts since the breakup.

The suspect also reportedly stated he saw officers arrive while hiding behind a fence.

“The defendant said, ‘I shot, he dropped; they shot, I dropped.'”

Cotter faces multiple charges including criminal attempt to commit murder in the first degree. He remains at the hospital.

If anyone in the community has any information, please contact: Commander Roy Smith with the Greeley Police Department at 970-371-3706 or Sergeant Craig Bollig with the Greeley Police Department at 970-371-3932.

MORE NEWS: Andrew Reineke Named Sole Suspect In Homicide, Shots Fired At Commerce City Officers
Chris Pelton

Chris Pelton (credit: Peton Family)

Chris Pelton

Chris Pelton (credit: Peton Family)

If you want to help with medical funds for Officer Chris Pelton, there are several ways. A GoFundMe account has been set up, the Colorado Police Foundation website has set up a fund and Northern Colorado Police and Fire Families have set up a T-shirt fundraiser.