Hayatul Islam Khan, superintendent of Pirojpur police, said a team of police conducted a drive in Kumarkhali area for arresting criminal case accused Hasan Shikdar in the dead of night.
When police was heading towards sadar police station with the accused Hasan, the relatives of the accused and local people attacked on police in a bid to snatch away the accused from police custody.
Seven people including three sub-inspectors, one assistant sub-inspector and a constable were injured during the attack.
Police arrested seven people in connection with the attack on police.
Hasan Shikdar, son of Anwar Shikdar, Shaon Das, son of Mithu Das were among the arrestees.
The injured were taken to local hospital where three were given first aid.
Nurul Islam Badal, officer-in-charge of sadar police station, said police will file a case in this connection.