TOTOWA -- A man allegedly used an off-duty Paterson police officer's firearm to shoot and kill himself during a Fourth of July house party in Totowa on Monday, authorities said.

Xavier Cuevas-Soto, 22, of Clifton, apparently committed suicide at the officer's house party when the officer removed his off-duty firearm, Passaic County Prosecutor Camelia M. Valdes and Totowa Police Chief Robert Coyle said in a news release.

Valdes and Coyle did not identify the officer or provide more information on the circumstances leading up to the shooting.

Detectives from the Passaic County Prosecutor's Office, and members of the Totowa Police Department, the Paterson Police Department and the Passaic County Sheriff's Office Crime Scene Investigation Unit responded to the scene, they said.

Justin Zaremba may be reached at jzaremba@njadvancemedia.com. Follow him on Twitter @JustinZarembaNJ. Find NJ.com on Facebook.