A man died early Wednesday morning in Longview after he ran into an occupied home and exchanged gunfire with police.

Longview police officers were dispatched shortly before 3 a.m. to El Patio Mobile Home Park in the 600 block of California Way for a report of an unwanted subject.

Cowlitz County sheriff’s deputies also responded to assist the local officers, according to a Facebook post by the Longview Police Department.

When officers found the man, he displayed a firearm and fled, according to the police department.

Then, the man “forced his way into an occupied residence. The occupants were able to leave the residence safely,” police said.