A Idaho machete wielding man could face up to 15 years in prison after breaking into an apartment, before being shot by the homeowner.

According to police, Twain Thomas, 54, had been threatening residents with the weapon in his building in February 2013, when he kicked down the door of James Cvengros and his girlfriend Kaila Gearhart’s home.

Cvengros captured the terrifying moment on a digital camera after he heard the commotion and decided to press record.

As Thomas broke into the apartment, the couple had screamed, demanding that he leave, Cvengros then shot Thomas.

He was given a five-year fixed term and a 10-year indeterminate sentence for a string of aggravated assault charges and attempted murder.