Nangarhar local security officials on Monday said the attack on a prison and an adjacent shopping plaza in PD4 of Jalalabad city ended on Monday after nearly 20 hours with the death of 10 attackers.
At least 29 people were killed and 50 were wounded during the fighting, officials said.
Emal Niazi, Nangarhar's police chief, said that both the prison and the shopping plaza close to the prison were cleared of attackers and the area is under security forces control.
The Defense Ministry said in a statement 10 attackers were killed, five prisoners were killed by the attackers and six others wounded. Meanwhile, 40 families in a nearby building were rescued, 1,025 prisoners were also rescued, the ministry said.
According to the ministry, two security force members were also killed in the attack.
The attack began when a suicide bomber detonated a vehicle full of explosives at the entrance gate of the prison in PD4 of Jalalabad city at 6:44 pm on Sunday.
Following the blast, the attackers began fighting security forces in the prison and the nearby shopping area.
Hours before the attacks ended, the Afghan chief of army staff, General Yasin Zia, arrived in the province to lead the operation in both areas himself.
Fawad Aman, deputy spokesman for the Defense Ministry, confirmed that the attack had ended.
Nangarhar governor’s spokesman Attaullah Khogyani also announced the attack on Nangarhar prison had ended, with "at least 29 people killed and 50 wounded."
There are unconfirmed reports that Daesh has claimed responsibility.
The Taliban denies involvement in the attack.
The attack began on the last day of the Eid ceasefire between the Taliban and the Afghan government.