Hundreds of students were present when the film was shown on a screen at the front of the auditorium.
Someone has logged in and taken over the projector. It's absolutely nothing we have arranged, says Anna Ulfves, head of school in Köping municipality, to Aftonbladet.
She tells the newspaper that she doesn't know who played the film, and that the school will now review its routines to prevent the incident from happening again.
From now on, we will only use cables, and secure passwords and security so that no one can take over our projectors, says Ulfves.
The film, which allegedly shows the shooting of a rapper in a garage in Norrköping on Thursday evening, has spread widely on social media.