Police officers responding to the Stockholm terror atrocity were pelted with stones last night. Policeman Abdallah Ahmed (pictured) wrote about the incident on Facebook

Police officers responding to the Stockholm terror atrocity were attacked by a gang of youths who pelted them with stones last night, Swedish policemen have said.

The attack happened last night near Rinkeby, part of the 'immigrant no-go zone' that gained notoriety when President Trump referred to it in a controversial speech in February.

It is thought that the officers were taking part in an operation to arrest a 17-year-old and his mother at an address linked to the 39-year-old prime suspect.

Both have since been released without charge.

'During the night my colleagues were exposed to stone throwing in [the suburb of] Tensta, in the middle of an ongoing terror operation.

'Some people will never learn,' Abdallah Ahmed, a police officer, said in a social media post.

'To terror I want to say one thing, in pure Swedish: go to hell. My thoughts go to those affected in every way.'

The attack happened near the suburb of Rinkeby. Responding to Mr Ahmed's post, this policewoman, known only by her first name, Jenny, said: 'I wish I was working with you yesterday'

Jenny said she was 'so proud to be a police officer' after seeing how her colleagues handled the terror attack

Mr Ahmed also posted a picture of policemen drawing their weapons in the street, accompanied by a blue-and-white Swedish flag with a thin blue line running through it

Earlier today, at the address near Tensta that was raided last night, the 17-year-old who had been arrested denied any connection to the 39-year-old terrorist. Pictured: Another photo posted by Mr Ahmed of officers responding to the terror atrocity yesterday

He added: 'Do not pray for Sweden. Stand up for Sweden, fight for Sweden and die for Sweden.'

A police officer working in the same unit, who did not want to be named, confirmed to MailOnline separately that the attack had taken place.

Another policewoman commented: 'You are fantastic. I wish I was working with you yesterday. I am so proud to be a police officer.'

Mr Ahmed also posted a picture of policemen drawing their weapons in the street, accompanied by a blue-and-white Swedish flag with a thin blue line running through it.

Flowers left on a police car today as a sign of gratitude for the hard work of officers at the scene of the terrorist truck attack in downtown Stockholm

Donald Trump was mocked for suggesting Sweden had suffered a major terror attack, despite no evidence of one, and was having issues because of immigration, during a February speech

The attack happened in Tensa, seen towards the left of the map, near Rinkeby, right

Swedish Prime Minister Stefan Lofven looks at flowers near the scene of a truck attack in central Stockholm

Earlier today, at the address near Tensta that was raided last night, the 17-year-old who had been arrested denied any connection to the 39-year-old terrorist.

'I don't know him, I have had nothing to do with him and he has nothing to do with our family,' he told MailOnline.

It is understood that the terrorist was registered to the address and his post was delivered there.