Spokane police arrested a man who attempted to fire his gun at officers, police said Monday.

Clayton J. Williams, 21, pulled a gun on officers and attempted to fire “at least four times,” but his handgun malfunctioned, “each time only making a clicking sound,” according to police.

Williams and his girlfriend were at a party earlier that night in the area of Joseph Avenue and Ash Street in north Spokane where reports of shots being fired had occurred, according to court documents. Williams jumped into the back seat of his girlfriend’s Chevrolet TrailBlazer and told her “he had a gun and she needed to drive,” officers said.

Police were checking on a person during a different call for help nearby at about 3:30 a.m. when the TrailBlazer stopped at the intersection of Princeton Avenue and Whitehouse Street. Williams then opened the rear passenger door and attempted to fire at officers.

Williams told police he intended to “unload the pistol” at the officers, according to court documents.

Police did not fire and arrested Williams after a brief chase, the news release states. Police spokesman Officer Shane Phillips said investigators have yet to determine if the gun was loaded.

Spokane Superior Court Judge Annette Plese set bail at $100,000 for Williams during a court hearing Monday.

Before Williams was taken away, one of his family members yelled “I love you Clayton” before quickly storming out of the courtroom.

Williams is facing charges of first-degree kidnapping, unlawful possession of a firearm and attempted drive-by shooting.