WATCH: Daytona Beach police share body cam video of officers taking fire during hours-long standoff

This browser does not support the video element.

DAYTONA BEACH, Fla. — The Daytona Beach Police Department released body camera video Wednesday showing the tense moments when a man armed with a rifle opened fire on officers before he was shot himself.

Officers went to check a home on Piccadilly Drive just after midnight Monday due to a prior shooting there.

>>> STREAM CHANNEL 9 EYEWITNESS NEWS LIVE <<<

Police said they noticed a garage door was left open. They cleared the residence and when they came out of the house, they heard a shot fired.

The body camera video starts just before officers hear the gunshot and shows officers move towards the area.

A man, later identified as Joseph Jaynes, 25, was located near 1616 Piccadilly Drive. Police say he was armed with a rifle and a flashlight.

Police Chief Jakari Young said Jaynes pointed the gun at officers and exchanged gunfire with them.

Jaynes eluded officers and went into the woods, Young said.

READ: 1 dead, 2 injured after roommates stab each other during fight, deputies say

Young said Jaynes then got into a standoff with officers and was shot in the leg.

In the video, Jaynes randomly opens fire on officers. Chief Young said five officers fired shots back at Jaynes.

None of the officers were injured in the shooting.

The Florida Department of Law Enforcement (FDLE) will investigate the shooting. In the meantime, the officers involved will be placed on paid administrative leave per department policy.

Young said Jaynes called 911 for his injuries and the operators were able to connect him to hostage negotiators.

READ: Former NASCAR driver, son of Zaxby’s co-founder, fatally shot in Georgia

The body camera video ends with an aerial view of officers surrounding Jaynes as he sat on the ground injured from the apparent gunshot wound to his leg.

Jaynes was taken to a hospital for his injuries. Once he’s been cleared from the hospital, Jaynes will be booked at Volusia County Jail on 10 felony counts of aggravated assault on a law enforcement officer.

According to Young, this was the third trip officers had made to the address over the weekend.

Young said two roommates got into a dispute, and one of the roommates shot at the other.

The other roommate was arrested on Sunday.

This browser does not support the video element.

See a map of the scene below:

READ: Body of missing woman Miya Marcano found, sheriff says

Click here to download the free WFTV news and weather apps, click here to download the WFTV Now app for your smart TV and click here to stream Channel 9 Eyewitness News live.