Police said the suspect tried to leave the scene but was stopped and detained by civilians before authorities arrived.