INDIANAPOLIS -- An IMPD officer accidentally discharged a gun during the funeral for Southport police Lt. Aaron Allan, striking and injuring a Marion County Sheriff's deputy.

Indianapolis Metropolitan Police Department dispatch said the woman, who is a deputy with the Marion County Sheriff's Office, was grazed by the bullet on her right leg.

The shot went off in the main seating area toward the end of the funeral inside Bankers Life Fieldhouse as officers were being escorted out to join the funeral procession.

IMPD said the two became entangled by being in such a tight space.

"You can see, if you get some keys down inside the holster, it could actually grab your trigger and defeat the safety when they stood up, being in close quarters. When they pulled apart the weapon discharged," said an official with IMPD.

An ambulance took the deputy to Eskenazi Hospital. The injury did not appear to be serious and she has been resting at home, according to IMPD.

The male officer was placed on administrative duty following the shooting, but once the investigation revealed it was an accident, he was allowed to work with the public again.